Class AssetUtils
Util functions related to loading assets at runtime.
Inheritance
System.Object
AssetUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: JotunnLib.Utils
Assembly: JotunnLib.dll
Syntax
public static class AssetUtils
Methods
| Improve this Doc View SourceLoadMesh(String)
Loads a mesh from a .obj file at runtime.
Declaration
public static Mesh LoadMesh(string meshPath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | meshPath | Mesh path relative to "plugins" BepInEx folder |
Returns
| Type | Description |
|---|---|
| Mesh | Texture2D loaded, or null if invalid path |
LoadTexture(String)
Loads a 2D texture from file at runtime.
Declaration
public static Texture2D LoadTexture(string texturePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | texturePath | Texture path relative to "plugins" BepInEx folder |
Returns
| Type | Description |
|---|---|
| Texture2D | Texture2D loaded, or null if invalid path |