Table of Contents

Class LunyAsset

Namespace
Luny.Engine.Bridge
/
Assembly
Luny.dll
public abstract class LunyAsset : ILunyAsset
Expand Details ...
Inheritance
Object
LunyAsset
Implements
Derived

Constructors

LunyAsset(Object, LunyAssetPath)

protected LunyAsset(Object nativeAsset, LunyAssetPath assetPath)

Parameters

Type Name Description
Object
nativeAsset
LunyAssetPath
assetPath

Fields

s_NextAssetID

public static Int32 s_NextAssetID

Field Value

Int32

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