Class NetworkTransformTestComponent
Helper component for all NetworkTransformTests
Inheritance
NetworkTransformTestComponent
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkTransformTestComponent : NetworkTransform
Fields
Name | Description |
---|---|
AuthorityInstance | |
AuthorityLastSentState | |
ReadyToReceivePositionUpdate | |
ServerAuthority |
Properties
Name | Description |
---|---|
StatePushed | |
StateUpdated |
Methods
Name | Description |
---|---|
ApplyState() | |
CommitToTransform() | |
OnAuthorityPushTransformState(ref NetworkTransformState) | Invoked just prior to being pushed to non-authority instances. |
OnIsServerAuthoritative() | Override this method and return false to switch to owner authoritative mode |
OnNetworkSpawn() | Gets called when the NetworkObject gets spawned, message handlers are ready to be registered and the network is setup. |
OnNetworkTransformStateUpdated(ref NetworkTransformState, ref NetworkTransformState) | Invoked on the non-authoritative side when the NetworkTransformState has been updated |