Show / Hide Table of Contents

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 Source

LoadMesh(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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX