- Home /
Question by
unity_B5EB2DE23F3946B7E74F · Oct 04, 2021 at 10:19 AM ·
c#unity 5multiplayerphotonimage
How to change colors in unity using photon?
Hi, I'm making a multiplayer game and I'm trying to change image colors in multiplayer game. I'm trying to change the One player Gameobjects color to Green. and if its turn green then all players same Gameobject should turn Red. Can anyone tell me how to do that and sync the colors with all the players.
Comment
I've tried but its not working. Can you suggest me some code?
[PunRPC]
void UpdateMyColor ( Color col )
{
_renderer.material.SetColor( "_Color", col );
}