Class AssetLinker
- Namespace
- TAssetBundle.Extensions
- Assembly
- TAssetBundle.Extensions.dll
A class that links and manages assets on GameObjects. This class stores asset information and manages the usage and release of assets.
public class AssetLinker : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourAssetLinker
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectOfType<T>()Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Properties
AllAssetLinkers
A property that provides access to all existing AssetLinker objects.
public static HashSet<AssetLinker> AllAssetLinkers { get; }
Property Value
AssetInfo
The asset information linked to this object.
public AssetInfo AssetInfo { get; }
Property Value
IsLink
Whether an asset is linked to this object.
public bool IsLink { get; }
Property Value
StartTime
The time when the asset was linked to this object.
public float StartTime { get; }
Property Value
Methods
Link(AssetInfo)
Links an asset to this object. It will free the current asset and link a new one if different.
public void Link(AssetInfo assetInfo)
Parameters
assetInfo
AssetInfo
Unlink()
Unlinks the asset from this object.
public void Unlink()