The Material Modifier can be used to adjust Visual Materials dynamically during gameplay. The Material Modifier can be used to instantly change colors in a Visual Material or when used in conjunction with other tools can gradually change colors over time.
|Target||Set the object whose Visual Material will be adjusted|
|Enabled||Enable the Node to perform it's function. Disabled the Node will not have any effect when executed.|
|On Start||Execute the Node as soon as the Hype starts running|
|Slot Index||Select the Visual Material Slot Index to modify|
|Diffuse||Set a new color for the Diffuse color of the Visual Material|
|Ambient||Set a new color for the Ambient color of the Visual Material|
|Specular||Set a new color for the Specular color of the Visual Material|
|Shadow||Set a new color for the Shadow color of the Visual Material|
Vectors can be input to any of the color types in the Material Modifier. Vectors will be interpreted by the tool as RGBA color data (red, green, blue, alpha). Vectors can be input to the Material Modifier by Vector Nodes, Color & Color Mix Nodes.
When executed normally the Material Modifier will instantly change the color(s) of the target material.
In the Material Modifier set the Target Object and select the Material Slot you'd like to modify.
In the Color Mix Node set the 2 colors you'd like to mix.
- Color A should be the original color in the Visual Material
- Color B should be the color you'd like to change it to
In the Color Output select or create a new color that is not being used.
Output the Color Mix to the material you'd like to modify in the Material Modifier.
In the Wave Generator set the duration to the time you'd like the color change to take and send the Value Output to the Color Mix Node's Factor.
Now when you execute the Wave Generator the Visual Material will gradually change colors over the set duration.