Table of Contents

Class Assets

Namespace
AO
Assembly
CoreAssembly.dll

Assets is a core engine system to fetch assets

public static class Assets
Inheritance
Assets
Inherited Members

Methods

DecrementReferenceCount<T>(string)

public static T DecrementReferenceCount<T>(string path) where T : Asset

Parameters

path string

Returns

T

Type Parameters

T

DecrementReferenceCount<T>(T)

public static T DecrementReferenceCount<T>(T asset) where T : Asset

Parameters

asset T

Returns

T

Type Parameters

T

GetAsset<T>(string)

Get an asset by its path.

public static T GetAsset<T>(string path) where T : Asset

Parameters

path string

Returns

T

Type Parameters

T

Asset types: Texture, SpineSkeletonAsset, Prefab, AudioAsset

IncrementReferenceCount<T>(string, bool, bool)

public static T IncrementReferenceCount<T>(string path, bool synchronous = true, bool includeInLoadingScreen = false) where T : Asset

Parameters

path string
synchronous bool
includeInLoadingScreen bool

Returns

T

Type Parameters

T

IncrementReferenceCount<T>(T, bool, bool)

public static T IncrementReferenceCount<T>(T asset, bool synchronous = true, bool includeInLoadingScreen = false) where T : Asset

Parameters

asset T
synchronous bool
includeInLoadingScreen bool

Returns

T

Type Parameters

T

KeepLoaded<T>(string, bool, bool)

public static T KeepLoaded<T>(string path, bool synchronous = true, bool includeInLoadingScreen = false) where T : Asset

Parameters

path string
synchronous bool
includeInLoadingScreen bool

Returns

T

Type Parameters

T

KeepLoaded<T>(T, bool, bool)

public static T KeepLoaded<T>(T asset, bool synchronous = true, bool includeInLoadingScreen = false) where T : Asset

Parameters

asset T
synchronous bool
includeInLoadingScreen bool

Returns

T

Type Parameters

T