Table of Contents

Class DLCSharedAsset

Namespace
DLCToolkit.Assets
Assembly
DLCToolkit.dll

Represents a shared asset included in the DLC. Shared assets are content assets such as prefabs, textures, materials, audio clips, scriptable objects and more.

public sealed class DLCSharedAsset : DLCAsset
Inheritance
DLCSharedAsset
Inherited Members

Methods

Load()

Attempts to load this asset from the dlc.

public Object Load()

Returns

Object

The loaded asset

LoadAsync()

Attempts to load this asset from the dlc asynchronously. This method returns a DLCAsync object which is yieldable and contains information about the loading progress and status.

public DLCAsync<Object> LoadAsync()

Returns

DLCAsync<Object>

A yieldable DLCAsync object

LoadAsync<T>()

Attempts to load this asset from the dlc asynchronously. This method returns a DLCAsync object which is yieldable and contains information about the loading progress and status.

public DLCAsync<T> LoadAsync<T>() where T : Object

Returns

DLCAsync<T>

A yieldable DLCAsync object

Type Parameters

T

The generic type to load the asset as

LoadWithSubAssets()

Attempts to load this asset with all associated sub assets.

public Object[] LoadWithSubAssets()

Returns

Object[]

An array of sub assets for this asset

LoadWithSubAssetsAsync()

Attempts to load this asset with all associated sub assets from the dlc asynchronously. This method returns a DLCAsync object which is yieldable and contains information about the loading progress and status.

public DLCAsync<Object[]> LoadWithSubAssetsAsync()

Returns

DLCAsync<Object[]>

A yieldable DLCAsync object

LoadWithSubAssetsAsync<T>()

Attempts to load this asset with all associated sub assets from the dlc asynchronously. This method returns a DLCAsync object which is yieldable and contains information about the loading progress and status.

public DLCAsync<T[]> LoadWithSubAssetsAsync<T>() where T : Object

Returns

DLCAsync<T[]>

A yieldable DLCAsync object

Type Parameters

T

The generic asset type used to specify which sub asset types to load

LoadWithSubAssets<T>()

Attempts to load this asset with all associated sub assets. This overload will only return assets that are of the specified generic type such as 'Mesh'.

public T[] LoadWithSubAssets<T>() where T : Object

Returns

T[]

An array of sub assets for this asset

Type Parameters

T

The generic asset type to return

Load<T>()

Attempts to load this asset from the dlc as the specified generic type.

public T Load<T>() where T : Object

Returns

T

The loaded asset as the generic type

Type Parameters

T

The generic type to load the asset as