Show / Hide Table of Contents

    Class PrefabAssetReference

    Inheritance
    Object
    AddressableAssetReference<GameObject>
    PrefabAssetReference
    ComponentAssetReference<T>
    PrefabReference
    Implements
    IAssetReference<GameObject>
    Inherited Members
    AddressableAssetReference<GameObject>.AssetKey
    AddressableAssetReference<GameObject>._cachedAsset
    AddressableAssetReference<GameObject>.Asset
    AddressableAssetReference<GameObject>.HasAsset
    AddressableAssetReference<GameObject>.IsLoaded
    AddressableAssetReference<GameObject>.TryGetAddressableAddress()
    AddressableAssetReference<GameObject>.LoadAsync(Action<GameObject>)
    AddressableAssetReference<GameObject>.UnloadAsset()
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class PrefabAssetReference : AddressableAssetReference<GameObject>, IAssetReference<GameObject>

    Constructors

    PrefabAssetReference(GameObject)

    Declaration
    public PrefabAssetReference(GameObject asset)
    Parameters
    Type Name Description
    GameObject asset

    Methods

    Instantiate(Transform)

    Declaration
    public GameObject Instantiate(Transform parentTransform = null)
    Parameters
    Type Name Description
    Transform parentTransform
    Returns
    Type Description
    GameObject

    LoadAssetAsync(Action<IAssetReference<GameObject>>)

    Declaration
    public virtual void LoadAssetAsync(Action<IAssetReference<GameObject>> onComplete)
    Parameters
    Type Name Description
    Action<IAssetReference<GameObject>> onComplete

    ValidateAsset(String)

    Declaration
    public override bool ValidateAsset(string path)
    Parameters
    Type Name Description
    String path
    Returns
    Type Description
    Boolean

    ValidateAsset(UnityEngine.Object)

    Declaration
    public override bool ValidateAsset(UnityEngine.Object obj)
    Parameters
    Type Name Description
    UnityEngine.Object obj
    Returns
    Type Description
    Boolean

    Implements

    IAssetReference<TAsset>
    Back to top Copyright © 2020 East Side Games Inc.