Method LoadSpriteFromFile
|
Improve this Doc
View Source
LoadSpriteFromFile(string)
Loads a Sprite from file at runtime.
Declaration
public static Sprite LoadSpriteFromFile(string spritePath)
Parameters
Type |
Name |
Description |
string |
spritePath |
Texture path relative to "plugins" BepInEx folder |
Returns
Type |
Description |
Sprite |
Texture2D loaded, or null if invalid path |
|
Improve this Doc
View Source
LoadSpriteFromFile(string, Vector2)
Loads a Sprite from file at runtime.
Declaration
public static Sprite LoadSpriteFromFile(string spritePath, Vector2 pivot)
Parameters
Type |
Name |
Description |
string |
spritePath |
Texture path relative to "plugins" BepInEx folder |
Vector2 |
pivot |
The pivot to use in the resulting Sprite |
Returns
Type |
Description |
Sprite |
Texture2D loaded, or null if invalid path |