Class NetworkTransformAnticipationComponent
Inheritance
NetworkTransformAnticipationComponent
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: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkTransformAnticipationComponent : NetworkBehaviour
Fields
ShouldMove
Declaration
public bool ShouldMove
Field Value
Type | Description |
---|---|
bool |
ShouldSmooth
Declaration
public bool ShouldSmooth
Field Value
Type | Description |
---|---|
bool |
Methods
MoveRpc(Vector3)
Declaration
[Rpc(SendTo.Server)]
public void MoveRpc(Vector3 newPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newPosition |
OnReanticipate(double)
Declaration
public override void OnReanticipate(double lastRoundTripTime)
Parameters
Type | Name | Description |
---|---|---|
double | lastRoundTripTime |
Overrides
RotateRpc(Quaternion)
Declaration
[Rpc(SendTo.Server)]
public void RotateRpc(Quaternion newRotation)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | newRotation |
ScaleRpc(Vector3)
Declaration
[Rpc(SendTo.Server)]
public void ScaleRpc(Vector3 newScale)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newScale |