Search Results for

    Show / Hide Table of Contents

    Class AddressablesExtensions

    Addressables Based Extension Methods

    Inheritance
    System.Object
    AddressablesExtensions
    Namespace: GDX
    Syntax
    [VisualScriptingCompatible((short)2)]
    public static class AddressablesExtensions
    Remarks

    Requires UnityEngine.CoreModule.dll to function correctly.

    Requires com.unity.addressables Package.

    Methods

    | Improve this Doc View Source

    CanInstantiate(AssetReference)

    Can targetAssetReference be instantiated at runtime?

    Declaration
    public static bool CanInstantiate(this AssetReference targetAssetReference)
    Parameters
    Type Name Description
    UnityEngine.AddressableAssets.AssetReference targetAssetReference

    The target UnityEngine.AddressableAssets.AssetReference.

    Returns
    Type Description
    System.Boolean

    true/false

    Remarks

    Checks that it is not empty, has a runtime key, and makes sure the key is valid.

    | Improve this Doc View Source

    CanRelease(AsyncOperationHandle<GameObject>, Boolean)

    Can the targetAsyncOperationHandle be released?

    Declaration
    public static bool CanRelease(this AsyncOperationHandle<GameObject> targetAsyncOperationHandle, bool autoRelease = false)
    Parameters
    Type Name Description
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle<UnityEngine.GameObject> targetAsyncOperationHandle

    A target UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle<TObject> typed as UnityEngine.GameObject.

    System.Boolean autoRelease

    If it can, should the handle release?

    Returns
    Type Description
    System.Boolean

    true/false

    | Improve this Doc View Source

    HasRuntimeKey(AssetReference)

    Does targetAssetReference have a runtime key?

    Declaration
    public static bool HasRuntimeKey(this AssetReference targetAssetReference)
    Parameters
    Type Name Description
    UnityEngine.AddressableAssets.AssetReference targetAssetReference

    The target UnityEngine.AddressableAssets.AssetReference.

    Returns
    Type Description
    System.Boolean

    true/false

    Remarks

    Will return false if the reference is null.

    | Improve this Doc View Source

    IsEmpty(AssetReference)

    Is targetAssetReference empty?

    Declaration
    public static bool IsEmpty(this AssetReference targetAssetReference)
    Parameters
    Type Name Description
    UnityEngine.AddressableAssets.AssetReference targetAssetReference

    The target UnityEngine.AddressableAssets.AssetReference.

    Returns
    Type Description
    System.Boolean

    true/false

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.