Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Colorization

To better differentiate between users in a multiplayer session, avatar colorization has been implemented, providing a unique visual appearance for each user’s avatar.

The component has two fields: an array of color sets and an array of renderers. The color sets array contains a list of colors, where each element includes a list of colors to be applied. The renderers array should include all components that need to be colorized.

Colors are selected based on the user’s multiplayer session ID. The first user to connect will claim the first color, the second user will claim the next, and so on. Once all colors have been assigned, the list will loop back to the beginning.


Avatar colorization