Show / Hide Table of Contents

    Class AddressableAssetReference<TAsset>

    Inheritance
    Object
    AddressableAssetReference<TAsset>
    PrefabAssetReference
    ScriptableObjectAssetReference<TAsset>
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class AddressableAssetReference<TAsset> : AssetReference where TAsset : UnityEngine.Object
    Type Parameters
    Name Description
    TAsset

    Fields

    _cachedAsset

    Declaration
    protected TAsset _cachedAsset
    Field Value
    Type Description
    TAsset

    Properties

    Asset

    Declaration
    public virtual TAsset Asset { get; }
    Property Value
    Type Description
    TAsset

    AssetKey

    Declaration
    public virtual string AssetKey { get; }
    Property Value
    Type Description
    String

    HasAsset

    Declaration
    public virtual bool HasAsset { get; }
    Property Value
    Type Description
    Boolean

    IsLoaded

    Declaration
    public virtual bool IsLoaded { get; }
    Property Value
    Type Description
    Boolean

    Methods

    LoadAsync(Action<TAsset>)

    Declaration
    protected virtual void LoadAsync(Action<TAsset> onComplete)
    Parameters
    Type Name Description
    Action<TAsset> onComplete

    TryGetAddressableAddress()

    Declaration
    protected virtual bool TryGetAddressableAddress()
    Returns
    Type Description
    Boolean

    UnloadAsset()

    Declaration
    public virtual void UnloadAsset()
    Back to top Copyright © 2020 East Side Games Inc.