Struct HalfVector3
Implements
Inherited Members
Namespace: Unity.Netcode.Components
Assembly: solution.dll
Syntax
public struct HalfVector3 : INetworkSerializable
Constructors
Name | Description |
---|---|
Half |
Constructor that defaults to all axis being synchronized. |
Half |
Constructor |
Half |
Constructor that defaults to all axis being synchronized. |
Half |
Constructor |
Fields
Name | Description |
---|---|
Axis | Used to store the half float precision values as a half3 |
Axis |
Determine which axis will be synchronized during serialization |
Properties
Name | Description |
---|---|
X | The half float precision value of the x-axis as a half. |
Y | The half float precision value of the y-axis as a half. |
Z | The half float precision value of the z-axis as a half. |
Methods
Name | Description |
---|---|
Network |
The serialization implementation of INetwork |
To |
Gets the full precision value as a Vector3. |
Update |
Converts a full precision Vector3 to half precision and updates the current instance. |