Network state change materials

You can use a network state to synchronize changes to one or more objects' materials.

Component overview

In the NetworkStateTrigger_ChangeMaterials component, you can set both a list of materials and a list of Mesh Renderers. You can then call methods to apply a material from the list to all referenced Mesh Renderers.

You can provide a material index to change a specific material in a Mesh Renderer.

Example lists of materials and Mesh Renderers in the Change Materials component

The following diagram shows an example of how to arrange the components in Unity, and the required references.

Example use of network states to synchronize cycling through a list of materials

Last updated