Class MaterialInstance
Instance of the Material with custom set of material parameter values.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class MaterialInstance : MaterialBase
Constructors
MaterialInstance()
Properties
BaseMaterial
Gets or sets the base material. If value gets changed parameters collection is restored to the default values of the new material.
Declaration
[Unmanaged]
public MaterialBase BaseMaterial { get; set; }
Property Value
MaterialBase
|
Methods
ResetParameters()
Resets all parameters back to the base material (including disabling parameter overrides).
Declaration
[Unmanaged]
public void ResetParameters()