Method LoadTexture
| Edit this page View SourceLoadTexture(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 |