Add built-in serialization for UnityEngine.Pose
#2675
Labels
stat:awaiting triage
Status - Awaiting triage from the Netcode team.
type:feature
New feature, request or improvement
Is your feature request related to a problem? Please describe.
Unity provide a primitive struct called Pose, which is a composition of a
Vector3
and aQuaternion
. This type is not very known, but very usefull, for instance in a single list of waypoints that also need to store their rotation.This type is not listed in the documentation: https://docs-multiplayer.unity3d.com/netcode/current/advanced-topics/serialization/unity-primitives/, and doesn't work if used in an Rpc or NetworkVariable.
Describe the solution you'd like
Add a default serializer for
UnityEngine.Pose
.Describe alternatives you've considered
Today, users have to implement their own serializer or send Vector3 and Quaterion separately.
The text was updated successfully, but these errors were encountered: