Click or drag to resize

ModAssets Class

Allows developers to request assets loads from any running mod host. Allows pre-compiled mod assets to be loaded at runtime for any running ModHost that contains an asset with the specified name.
Inheritance Hierarchy
SystemObject
  UModModAssets

Namespace:  UMod
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class ModAssets

The ModAssets type exposes the following members.

Methods
  NameDescription
Public methodStatic memberHasAsset
Returns true if any loaded mod conatins an asset with the specified name.
Public methodStatic memberLoad(String)
Attempts to load an asset from a loaded mod. This method will check all loaded mods for an asset with the specified name.
Public methodStatic memberLoadT(String)
Attempts to load an asset from a loaded mod and return the value as the specified generic type. This method will check all loaded mods for an asset with the specified name.
Public methodStatic memberLoadAsync(String)
Attempts to load an asset from a loaded mod asynchronously. This method will check all loaded mods for an asset with the specified name.
Public methodStatic memberLoadAsyncT(String)
Attempts to load an asset from a loaded mod asynchronously and return the result as the specified generic type. This method will check all loaded mods for an asset with the specified name.
Top
See Also