Class MaterialOverride
Represents a material override authoring component.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Global Namespace
Assembly: solution.dll
Syntax
[DisallowMultipleComponent]
[ExecuteInEditMode]
public class MaterialOverride : MonoBehaviour
Fields
| Name | Description |
|---|---|
| overrideAsset | The material asset to override. |
| overrideList | The list of overridden material properties. |
Methods
| Name | Description |
|---|---|
| ApplyMaterialProperties() | Applies the material properties to the renderer. |
| ClearOverrides() | Resets the renderer. |
| OnDisable() | Calls ClearOverrides when the behaviour becomes disabled. |
| OnValidate() |