Click or drag to resize

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

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

Parameters

allowCaching (Optional)
Type: SystemBoolean
When true, if the asset has already been loaded than 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