IModAsset Interface |
Namespace: UMod
public interface IModAsset : IModAssetInfo
The IModAsset type exposes the following members.
Name | Description | |
---|---|---|
AssetObject |
Get the object associated with this asset.
This value will try to ensure a valid object is returned which may result in automatic loading of the asset, however this may not be possible if the asset is not alive.
|
Name | Description | |
---|---|---|
Instantiate |
Attempts to load this IModAsset and then create an instance of the object for use in game.
Combines the behaviour of an asset load request and instantiate call into one for ease of use.
| |
Instantiate(Vector3, Quaternion) |
Attempts to load this IModAsset and then create an instance of the object with the specified position and rotation.
Combines the behaviour of an asset load request and instantiate call into one for ease of use
| |
InstantiateT |
Attempts to load this IModAsset and then create an instance of the object for use in game.
Combines the behaviour of an asset load request and instantiate call into one for ease of use
| |
InstantiateT(Vector3, Quaternion) |
Attempts to load this IModAsset and then create an instance of the object with the specified position and rotation.
Combines the behaviour of an asset load request and instantiate call into one for ease of use
| |
Load(Boolean) |
Attempts to load this IModAsset from the mod.
| |
LoadT(Boolean) |
Attempts to load this IModAsset from the mod as the specified generic type.
| |
LoadAsync(Boolean) |
Attempts to load this IModAsset from the mod asynchronously.
This method returns a ModAsyncOperation object which is yieldable and containg information about the loading progress and status.
| |
LoadAsyncT(Boolean) |
Attempts to load this IModAsset from the mod asynchronously.
This method returns a ModAsyncOperation object which is yieldable and containg information about the loading progress and status.
| |
LoadWithSubAssets(Boolean) |
Attempts to load this IModAsset with all associated sub assets.
The main asset will be loaded into AssetObject and the return value is an array of sub assets.
| |
LoadWithSubAssetsT(Boolean) |
Attempts to load this IModAsset with all associated sub assets.
The main asset will be loaded into AssetObject and the return value is an array of sub assets.
This overload will only return assets that are of the specified generic type such as 'Mesh'.
| |
LoadWithSubAssetsAsync(Boolean) |
Attempts to load this IModAsset with all associated sub assets from the mod asynchronously.
This method returns a ModAsyncOperation object which is yieldable and containg information about the loading progress and status.
The main asset will be loaded into AssetObject.
| |
LoadWithSubAssetsAsyncT(Boolean) |
Attempts to load this IModAsset with all associated sub assets from the mod asynchronously.
This method returns a ModAsyncOperation object which is yieldable and containg information about the loading progress and status.
The main asset will be loaded into AssetObject.
|