Table of Contents

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
Object
Component
Behaviour
MonoBehaviour
AssetLinker
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.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.name
Object.hideFlags
Extension Methods

Properties

AllAssetLinkers

A property that provides access to all existing AssetLinker objects.

public static HashSet<AssetLinker> AllAssetLinkers { get; }

Property Value

HashSet<AssetLinker>

AssetInfo

The asset information linked to this object.

public AssetInfo AssetInfo { get; }

Property Value

AssetInfo

Whether an asset is linked to this object.

public bool IsLink { get; }

Property Value

bool

StartTime

The time when the asset was linked to this object.

public float StartTime { get; }

Property Value

float

Methods

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

Unlinks the asset from this object.

public void Unlink()