Show / Hide Table of Contents

Method LoadTexture

| Edit this page View Source

LoadTexture(string, bool)

Loads a Texture2D from file at runtime.
Declaration
public static Texture2D LoadTexture(string texturePath, bool relativePath = true)
Parameters
Type Name Description
string texturePath Texture path relative to "plugins" BepInEx folder
bool relativePath Is the given path relative
Returns
Type Description
Texture2D Texture2D loaded, or null if invalid path
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾