Anybody have any experience with unity networking and can help me out with this? I am just trying to get player name tags to be over other players. Here is my OnGUI code on the players PlayerNetworkController:
Oh i see i think you are using the wrong camera. The other player tries to get the correct screen point from his camera not from yours.
That might cause your problem.
Just make the name an attributte of the player (Like it should be, imo) then run a test to get all buffered players in the area, grab the position, raise the Y value of the original position, then draw the lable. Run this on the players camera and voila, names above players.
Tried that. For some reason, players can only find their own player object when doing a GameObject.FindAllWithTag(“Player”);
Don’t think I can do this as there will a camera for each player, and there can only be one main camera. Unless Camera.Main doesn’t return the camera if it is disabled.
Is there any way to just to display a nametag over a player that I am looking at? I have all of the raycast stuff down, but I can’t get a networkview owner from another players gameobject so I can’t compare it to find the players name in the database.
I am just really confused. Is there something I am missing here… Is there some sort of way I should be storing the player data? currently whenever a player joins, that players NetworkPlayer and Name are added to a database that all players on the server can see.