Click or drag to resize

IModAssetLoadAsync Method (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.

Namespace:  UMod
Assembly:  UMod-Interface (in UMod-Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
ModAsyncOperation<Object> LoadAsync(
	bool allowCaching = true
)

Parameters

allowCaching (Optional)
Type: SystemBoolean
When true, if the asset has already been loaded then a cached instance will be reused

Return Value

Type: ModAsyncOperationObject
A yieldable ModAsyncOperation object
Exceptions
ExceptionCondition
ModNotLoadedExceptionThe mod that owns the assets has been unloaded
See Also