Click or drag to resize

IModAsset Interface

Represents an asset included in a mod.

Namespace:  UMod
Assembly:  UMod-Interface (in UMod-Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public interface IModAsset : IModAssetInfo

The IModAsset type exposes the following members.

Properties
  NameDescription
Public propertyAssetObject
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.
Top
Methods
  NameDescription
Public methodInstantiate
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.
Public methodInstantiate(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
Public methodInstantiateT
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
Public methodInstantiateT(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
Public methodLoad(Boolean)
Attempts to load this IModAsset from the mod.
Public methodLoadT(Boolean)
Attempts to load this IModAsset from the mod as the specified generic type.
Public methodLoadAsync(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.
Public methodLoadAsyncT(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.
Public methodLoadWithSubAssets(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.
Public methodLoadWithSubAssetsT(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'.
Public methodLoadWithSubAssetsAsync(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.
Public methodLoadWithSubAssetsAsyncT(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.
Top
See Also