- Home /
Question by
exowatt · Dec 29, 2015 at 06:25 PM ·
multiplayerunity5networktransform.rotationdisconnect
Get the rotation of a player on the server (unet)
Hi guys,
I'm trying to get the player's rotation when the Disconnect event is called like this:
private void MyFunction(NetworkMessage msg) {
foreach (var playerController in msg.conn.playerControllers {
if (playerController.gameObject.name == "Player (blablabla)") {
// playerController.gameObject.transform.rotation -> bad value !
}
}
}
How to solve my problem ?
Comment