loadMaterial

fun loadMaterial(path: String): Material

Loads a material from the specified path.

Return

Returns a Material object representing the loaded material.

Parameters

path

The path to the material to be loaded in the AssetBundle.

Throws

If any error occurs during the loading process.