createInstance

Creates a new instance of this material. Material instances should be freed using Engine.destroy(MaterialInstance).

Return

A new MaterialInstance with default parameters.

Parameters

name

Name of the new instance for debugging; null inherits the material's name.