Table of Contents

Class SoftAssetReference<T>

Namespace
Ceres.Resource
Assembly
Ceres.dll

A lightweight asset reference only use address as identifier

public class SoftAssetReference<T> : SoftAssetReferenceBase where T : Object

Type Parameters

T
Inheritance
SoftAssetReference<T>
Inherited Members

Constructors

SoftAssetReference()

public SoftAssetReference()

SoftAssetReference(string)

Create asset reference from address

public SoftAssetReference(string address)

Parameters

address string

Methods

LoadAsync()

Load T async

public ResourceHandle<T> LoadAsync()

Returns

ResourceHandle<T>

Handle of asset

Operators

implicit operator SoftAssetReference<T>(SoftAssetReference)

public static implicit operator SoftAssetReference<T>(SoftAssetReference assetReference)

Parameters

assetReference SoftAssetReference

Returns

SoftAssetReference<T>

implicit operator SoftAssetReference(SoftAssetReference<T>)

public static implicit operator SoftAssetReference(SoftAssetReference<T> assetReference)

Parameters

assetReference SoftAssetReference<T>

Returns

SoftAssetReference

implicit operator SoftAssetReference<T>(string)

public static implicit operator SoftAssetReference<T>(string address)

Parameters

address string

Returns

SoftAssetReference<T>