VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void Unity.Netcode.Samples.ClientNetworkTransform.OnNetworkSpawn ( )
inline

Used to determine who can write to this transform. Owner client only. Changing this value alone will not allow you to create a NetworkTransform which can be written to by clients. We're using RPCs to send updated values from client to server. Netcode doesn't support client side network variable writing. This imposes state to the server. This is putting trust on your clients. Make sure no security-sensitive features use this transform.

Definition at line 21 of file ClientNetworkTransform.cs.

22  {
23  base.OnNetworkSpawn();
24  CanCommitToTransform = IsOwner;
25  }