hi,
im having an issue with setting up and disabling certain layers in multiplayer. i set it up so that i set up 2 layers, one to be displayed on my second camera (fps hands and what not) and the other to not show up on my camera. i made a c# script to set the layers when the player gets instantiated.
problem is, now i dont see other players. if someone can help me out, and/or point me in the right direction, id greatly appreciate it. thanks.
MUST READ! many, many people have tried. and many many people have failed. but not I! I HAVE SUCCEEDED! and you shall too. if you are having problems with layers in your game with fps, you have come to the right place! i will fulfill your quest of enlightenment, i am the answer to your doubts! i am the KEY TO YOUR HEART! …ok forget that last part.
all you have to do is disable the render mesh locally. the c# script for it is
MeshRenderer[] mrs = myPlayer.GetComponentsInChildren<MeshRenderer>();
foreach(MeshRenderer mr in mrs) {
mr.enabled = false;
}
SkinnedMeshRenderer[] smrs = myPlayer.GetComponentsInChildren<SkinnedMeshRenderer>();
foreach(SkinnedMeshRenderer smr in smrs) {
smr.enabled = false;
}
study this! this is the key…AND your destiny!
good luck all,
god speed.