private void Update() { if (m_User != null) { var pos = rootNode.InverseTransformPoint(Camera.main.transform.localPosition); var rot = Quaternion.Inverse(rootNode.transform.rotation) * Camera.main.transform.localRotation; m_User.SetValue(NetworkUser.k_PositionDataKey, pos, true); m_User.SetValue(NetworkUser.k_RotationDataKey, rot, true); } }