Struct NetworkTransform.NetworkTransformState
Data structure used to synchronize the Network
Implements
Inherited Members
Namespace: Unity.Netcode.Components
Assembly: solution.dll
Syntax
public struct NetworkTransform.NetworkTransformState : INetworkSerializable
Properties
Name | Description |
---|---|
Has |
When set, at least one of the position axis values has changed. |
Has |
When set, the X-Axis position value has changed |
Has |
When set, the Y-Axis position value has changed |
Has |
When set, the Z-Axis position value has changed |
Has |
When set, at least one of the rotation axis values has changed. |
Has |
When set, the Euler rotation X-Axis value has changed. |
Has |
When set, the Euler rotation Y-Axis value has changed. |
Has |
When set, the Euler rotation Z-Axis value has changed. |
Has |
When set, at least one of the scale axis values has changed. |
Has |
When set, the X-Axis scale value has changed. |
Has |
When set, the Y-Axis scale value has changed. |
Has |
When set, the Z-Axis scale value has changed. |
In |
When set, the Network |
Is |
When set, this indicates it is the first state being synchronized.
Typically when the associate Network |
Is |
When set, the current state will be treated as a teleport. |
Last |
The last byte size of the Network |
Quaternion |
When set Quaternions will be compressed down to 4 bytes using a smallest three implementation. |
Quaternion |
When enabled, this Network |
Use |
When set, the Network |
Use |
When set the Network |
Use |
Determines if position interpolation will Slerp towards its target position. This is only really useful if you are moving around a point in a circular pattern. |
Methods
Name | Description |
---|---|
Get |
The network tick that this state was sent by the authoritative instance. |
Get |
Returns the current state's position. If there is no change in position, then it returns zero. |
Get |
Returns the current state's rotation. If there is no change in the rotation, then it will return identity. |
Get |
Returns the current state's scale. If there is no change in scale, then it returns zero. |
Network |
Serializes this Network |