2. Room Member Properties technique
STRIX provides room member properties for each room member; one of which is the property of name properties
that allows you to define application-specific custom properties. Each room member can update their own custom property any time, and the change is automatically synchronized to other clients.
On the replica side, you can retrieve a Dictionary containing custom properties by strixReplicator.roomMember.GetProperties() to refer to the custom property value that represents the hairstyle ID among them. Set the initial hairstyle upon instantiation in the Start callback. When a room member property is updated, RoomSetMemberNotified room event fires, so you can use its event handler to change the hairstyle of the avatar.
The values of room member properties are synchronized to those room members that joined in a middle of a game play, so you don’t need to take care of those players who joined later specially.