- Home /
Question by
m-y · Feb 07, 2018 at 03:30 PM ·
c#unity 5multiplayer
what is wrong here ?
what i want simply is to get the host player position and pass it to a text in the client side as u see i use [SyncVar] to get Vector3 (playerpos ) and in the server side i pass player position to that Vector3 (playerpos) then i call vector3 value and pass it to client text but nothing work , What is wrong here ?
Comment
Debug log player position and show what the console says.
It might be possible to be both client and server, but if not then this line might need changing...
if (isServer && isClient)
Actually there is a big problem i am working on multiplayer LAN Between two mobile Devices so i can't debug.log and the unity Editor doesn't connect with my mobile network @cooldude5757 @Bonfire-Boy
void OnGUI () {
GUI.Box(new Rect(10,10,100,90), playerpos);
}
Take a snapshot and attach here.