Difference between revisions of "MaterialSet (Component)"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=MaterialSetComponent.png |Name=Material Set }} <!--T:2--> == Fields == {{Table ComponentFie...")
 
 
Line 11: Line 11:
 
== Fields ==
 
== Fields ==
 
{{Table ComponentFields
 
{{Table ComponentFields
|ActiveSetIndex|Int|
+
|ActiveSetIndex|Int| The index into the Sets list of the materials to apply to the target renderer.
|Target|SyncAssetList`1|TypeString1=SyncAssetList<Material>|
+
|Target|SyncAssetList`1|TypeString1=SyncAssetList<Material>| The list of materials in a renderer to swap out.
|Sets|SyncList`1|TypeString2=SyncList<SyncAssetList<Material>>|
+
|Sets|SyncList`1|TypeString2=SyncList<SyncAssetList<Material>>| The list of lists of materials in a renderer to swap out.
 
}}
 
}}
  

Latest revision as of 04:18, 25 August 2021


This article or section is a Stub. You can help the Neos Wiki by expanding it.


Material Set component as seen in the Scene Inspector

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated
Enabled Bool Controls whether or not this component is enabled
ActiveSetIndex Int The index into the Sets list of the materials to apply to the target renderer.
Target SyncAssetList<Material> The list of materials in a renderer to swap out.
Sets SyncList<SyncAssetList<Material>> The list of lists of materials in a renderer to swap out.

Usage

Examples

Neos VR Tutorial: Using MaterialSet for complex Material Changes by ProbablePrime

Related Components