Class TrAssetTaskBase<TSelf, TValue, TObj>
Inheritance
TrAssetTaskBase<TSelf, TValue, TObj>
Assembly: Glitch9.AIDevKit.Sheets.dll
Syntax
public abstract class TrAssetTaskBase<TSelf, TValue, TObj> : TrTask<TSelf, TValue> where TSelf : TrAssetTaskBase<TSelf, TValue, TObj> where TObj : Object
Type Parameters
| Name |
Description |
| TSelf |
|
| TValue |
|
| TObj |
|
Constructors
|
Edit this page
View Source
TrAssetTaskBase(string, string)
Declaration
protected TrAssetTaskBase(string key, string table)
Parameters
Fields
|
Edit this page
View Source
LoadedAssetCache
Declaration
protected TObj LoadedAssetCache
Field Value
|
Edit this page
View Source
m_FetchedReference
Declaration
protected ObjectReference m_FetchedReference
Field Value
Methods
|
Edit this page
View Source
GetObjectReferenceFromValue(TValue)
Declaration
protected abstract ObjectReference GetObjectReferenceFromValue(TValue value)
Parameters
| Type |
Name |
Description |
| TValue |
value |
|
Returns
|
Edit this page
View Source
Load(Action<TObj>)
Registers a callback to be invoked when the asset is loaded.
This automatically triggers LoadAsync() in the background.
Declaration
public TSelf Load(Action<TObj> callback)
Parameters
| Type |
Name |
Description |
| Action<TObj> |
callback |
The callback to invoke with the loaded asset.
|
Returns
| Type |
Description |
| TSelf |
The current task instance for method chaining.
|
|
Edit this page
View Source
LoadAsync()
Asynchronously loads the Unity asset associated with this localization key.
Returns a cached asset if already loaded.
Declaration
public UniTask<TObj> LoadAsync()
Returns
| Type |
Description |
| UniTask<TObj> |
A UniTask that resolves to the loaded Unity Object.
|
Extension Methods