|Overrides|{{RootFieldType|SyncList`1|[[#MaterialOverride|MaterialOverride]]}}|TypeAdv2=true| A list of materials to override during rendering in a <code>Context</code> context.
}}
}}
== Behavior ==
== MaterialOverride ==
{{Table TypeFields
|Index|Int| The material index on <code>Renderer</code> to override.
|Material|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv1=true| The material to override <code>Renderer</code>'s materials for material <code>Index</code>.
}}
== Usage ==
Used to hide materials or change them in a mirror. like showing an evil version of yourself in a mirror, or to hide your head material from your own viewpoint
== Examples ==
== Examples ==
== See Also ==
== See Also ==
* [[Component:RenderTransformOverride]]
[[Category:Components:Rendering{{#translation:}}|Render Material Override]]
[[Category:Components:Rendering{{#translation:}}|Render Material Override]]
[[Category:Components{{#translation:}}|Render Material Override]]
[[Category:Components{{#translation:}}|Render Material Override]]
[[Category:Components With Nested Types{{#translation:}}|Render Material Override]]
[[Category:Components With Nested Types{{#translation:}}|Render Material Override]]
[[Category:ComponentStubs]]
Latest revision as of 15:36, 10 March 2025
Component image
Render Material Override component as seen in the Scene Inspector
The RenderMaterialOverride Component allows for overriding materials on a renderer when it is rendered in certain contexts.
Note: This only overrides materials properly if all Contexts are used, with a component for each one. This may be a bug.
The material to override Renderer's materials for material Index.
Usage
Used to hide materials or change them in a mirror. like showing an evil version of yourself in a mirror, or to hide your head material from your own viewpoint