Struct AssetHandle<T>
- Namespace
- TAssetBundle
- Assembly
- TAssetBundle.dll
Generic structure for managing specific types of assets.
public struct AssetHandle<T> where T : Object
Type Parameters
T
- Inherited Members
Fields
None
Represents an invalid asset handle.
public static readonly AssetHandle<T> None
Field Value
- AssetHandle<T>
Properties
Info
Returns the asset information.
public IAssetInfo Info { get; }
Property Value
IsValid
Returns whether the handle is valid.
public bool IsValid { get; }
Property Value
Methods
Get()
Returns the asset of the specified type.
public T Get()
Returns
- T
Asset of the generic type
Operators
implicit operator AssetHandle(AssetHandle<T>)
Implicitly converts a generic asset handle to a standard asset handle.
public static implicit operator AssetHandle(AssetHandle<T> handle)
Parameters
handle
AssetHandle<T>Generic asset handle