Search Results for

    Show / Hide Table of Contents

    Class TrAssetTaskBase<TSelf, TValue, TObj>

    Inheritance
    object
    TrTask<TSelf, TValue>
    TrAssetTaskBase<TSelf, TValue, TObj>
    TrAssetTask<TObj>
    Inherited Members
    TrTask<TSelf, TValue>.Key
    TrTask<TSelf, TValue>.Table
    TrTask<TSelf, TValue>.IsValid()
    TrTask<TSelf, TValue>.Invalidate()
    TrTask<TSelf, TValue>.TryGetValue(string, string, out TValue)
    TrTask<TSelf, TValue>.ProcessValue(TValue)
    TrTask<TSelf, TValue>.ValidateValue(TValue)
    TrTask<TSelf, TValue>.BuildFinalKey(string)
    TrTask<TSelf, TValue>.value
    TrTask<TSelf, TValue>.Child(string)
    TrTask<TSelf, TValue>.Fallback(TValue)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Sheets
    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
    Type Name Description
    string key
    string table

    Fields

    | Edit this page View Source

    LoadedAssetCache

    Declaration
    protected TObj LoadedAssetCache
    Field Value
    Type Description
    TObj
    | Edit this page View Source

    m_FetchedReference

    Declaration
    protected ObjectReference m_FetchedReference
    Field Value
    Type Description
    ObjectReference

    Methods

    | Edit this page View Source

    GetObjectReferenceFromValue(TValue)

    Declaration
    protected abstract ObjectReference GetObjectReferenceFromValue(TValue value)
    Parameters
    Type Name Description
    TValue value
    Returns
    Type Description
    ObjectReference
    | 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

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation