How do I network arbitrary data from a game object?

Options
Hi!

In my game, there are musical instruments that the master client can use. Other clients will have a different version of the instruments, a version that does not actually produce sounds (as this is streamed from the master client), but should have the same appearance as the real instrument objects on the master client. Basically, the button states are indicated by their colour, and so the colours should be the same across all clients.

I could populate an array of indexes to represent the colour of each button... but how do I network this? Note that this data should be sent one way, and only from the master client to all other clients.

So far I have been using the photon components that seem to automatically network parameters such as position and orientation of objects, but I am not sure how to send and receive my own array.

Thanks!

Comments