Table of Contents

Class LunyAsset

Namespace
Luny.Engine.Bridge
Assembly
Luny.dll
public abstract class LunyAsset : ILunyAsset
Inheritance
object
LunyAsset
Implements
Derived

Constructors

LunyAsset(object, LunyAssetPath)

protected LunyAsset(object nativeAsset, LunyAssetPath assetPath)

Parameters

nativeAsset object
assetPath LunyAssetPath

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

LunyAssetId

AssetPath

The path used to load this asset.

public LunyAssetPath AssetPath { get; }

Property Value

LunyAssetPath

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