The '''MaterialRelay''' component is used to specify to a [[Material Tool]] when hitting a [[Slot|slot]] [[Tag|tagged]] with this component what materials to grab/apply to when using the tool.
|MaterialRefs|{{RootFieldType|SyncRefList`1|[[Type:AssetRef`1|AssetRef`1]]<[[Type:Material|Material]]>}}|TypeAdv0=true| A list of material storage fields that a material tool when applying should apply to. The first non null item in the list is the one a material tool will pick up when using the secondary action.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to the root of an object and provide a list of material storage fields from, for example, [[Component:MeshRenderer]] or [[Component:SkinnedMeshRenderer]] to make Relays for.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Added to the root of new avatars made with the avatar creator.
The MaterialRelay component is used to specify to a Material Tool when hitting a slottagged with this component what materials to grab/apply to when using the tool.
A list of material storage fields that a material tool when applying should apply to. The first non null item in the list is the one a material tool will pick up when using the secondary action.