Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.material.load

C๐Ÿท๏ธ Material

Part of StarfallEx namespace

๐Ÿ”— External
material.load(path)
View on GitHub|lua/starfall/libs_cl/material.lua:216
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Loads a .vmt material or existing material. Throws an error if the material fails to load Existing created materials can be loaded with ! prepended to the name Can't be modified

Parameters

NameTypeDescription
pathstringThe path of the material (don't include .vmt in the path)

Returns

TypeDescription
MaterialThe material object. Can't be modified.

Examples

No examples available.

Used In

No usages found in the codebase.