Class LunyAsset
public abstract class LunyAsset : ILunyAsset
- Inheritance
-
objectLunyAsset
- Implements
- Derived
Constructors
LunyAsset(object, LunyAssetPath)
protected LunyAsset(object nativeAsset, LunyAssetPath assetPath)
Parameters
nativeAssetobjectassetPathLunyAssetPath
Fields
s_NextAssetID
public static int s_NextAssetID
Field Value
- int
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