So here is the problem,
I want to make a multiplayer game, in which the player will have model for his hand and body separately, the other players will be able to see the body of the player and the player can only see his hands, many people will tell it to so in layers, but it is not possible because lets say, I have a Player A which can see his hands but not his body, and there is a Player B, but the player B will now only see Player A’s hands, not his body. Please Post a Solution ASAP
will tell it to so in layers, but it is not possible
Yes it is.
1. Create two layers: VisiblePlayerA
, and VisiblePlayerB
2. Create two cameras, one for each player.
1. CameraPlayerA : Change the Culling mask to see everything but the VisiblePlayerB
2. CameraPlayerB : Change the Culling mask to see everything but the VisiblePlayerA
3. Put the body of the PlayerA into the VisiblePlayerB
layer, and the hands in the Default
layer
4. Put the body of the PlayerB into the VisiblePlayerA
layer, and the hands in the Default
layer
Thanks to this, all the players will see the hands of each others, PlayerA will see the body of PlayerB but not its own body, while PlayerB will see the body of PlayerA but not its own body.