Struct RotationOnlyVariant
A serialization strategy for LocalTransform that replicates only the entity Rotation.
Inherited Members
Namespace: Unity.NetCode
Syntax
[Preserve]
[GhostComponentVariation(typeof(LocalTransform), "RotationOnly - 3D", false)]
public struct RotationOnlyVariant
Fields
Rotation
The rotation quaternion is replicated and the resulting floating point data use for replication the rotation is quantized with good precision (10 or more bits per component)
Declaration
public quaternion Rotation
Field Value
Type | Description |
---|---|
quaternion |