Class LunyAsset
public abstract class LunyAsset : ILunyAsset
Constructors
LunyAsset(Object, LunyAssetPath)
protected LunyAsset(Object nativeAsset, LunyAssetPath assetPath)
Parameters
| Type | Name | Description |
|---|---|---|
nativeAsset |
||
assetPath |
Fields
s_NextAssetID
public static Int32 s_NextAssetID
Field Value
Properties
AssetID
The unique identifier for this asset.
public LunyAssetId AssetID { get; }
Property Value
AssetPath
The path used to load this asset.
public LunyAssetPath AssetPath { get; }
Property Value
NativeAsset
The native asset reference.
public Object NativeAsset { get; }
Property Value
- Object
Methods
Cast<T>()
Cast the native asset to a given type. Returns null on type mismatch.
public T Cast<T>() where T : class
Returns
- T
Type Parameters
T
ToString()
public override String ToString()
Returns
- String