Skip to content

M_MSCLoader_LoadAssets_LoadTexture

piotrulos edited this page Apr 7, 2023 · 4 revisions

LoadAssets.LoadTexture Method

Load texture (*.dds, *.jpg, *.png, *.tga) from mod assets folder

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286

Syntax

C#

public static Texture2D LoadTexture(
	<a href="T_MSCLoader_Mod">Mod</a> mod,
	string fileName,
	bool normalMap = false
)

View Source

Parameters

 

mod
Type: MSCLoader.Mod
Mod instance.
fileName
Type: System.String
File name to load from assets folder (for example "texture.dds")
normalMap (Optional)
Type: System.Boolean
Normal mapping (default false)

Return Value

Type: Texture2D
Returns unity Texture2D

See Also

Reference

LoadAssets Class
MSCLoader Namespace

Clone this wiki locally