How to change layer on only other clients' objects.
Currently I am using a separate camera with a culling mask, to avoid gun clipping into the wall.
But when I build the game I see the other players gun through the wall.
My script looks like this:
public PhotonView PV;
public GameObject weapon;
private void Update()
weapon.layer = LayerMask.NameToLayer("Default");
I appreciate any replies.