Class SoftAssetReference<T>
A lightweight asset reference only use address as identifier
public class SoftAssetReference<T> : SoftAssetReferenceBase where T : Object
Type Parameters
T
- Inheritance
-
SoftAssetReference<T>
- Inherited Members
Constructors
SoftAssetReference()
public SoftAssetReference()
SoftAssetReference(string)
Create asset reference from address
public SoftAssetReference(string address)
Parameters
addressstring
Methods
LoadAsync()
Load T async
public ResourceHandle<T> LoadAsync()
Returns
- ResourceHandle<T>
Handle of asset
Operators
implicit operator SoftAssetReference<T>(SoftAssetReference)
public static implicit operator SoftAssetReference<T>(SoftAssetReference assetReference)
Parameters
assetReferenceSoftAssetReference
Returns
implicit operator SoftAssetReference(SoftAssetReference<T>)
public static implicit operator SoftAssetReference(SoftAssetReference<T> assetReference)
Parameters
assetReferenceSoftAssetReference<T>
Returns
implicit operator SoftAssetReference<T>(string)
public static implicit operator SoftAssetReference<T>(string address)
Parameters
addressstring