WriteUIDs(ReadOnlySpan<HierarchyNode>, Span<byte>)
Serializes stable identifiers for the given nodes into outUIDs. The buffer is pre-zeroed; write only slots that have a valid identity. Unwritten slots are treated as unresolvable during restore.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
protected virtual void WriteUIDs(ReadOnlySpan<HierarchyNode> nodes, Span<byte> outUIDs)
Parameters
Nodes to serialize, one per output slot.
Packed UID bytes, bytes per node.
GetUIDInfo().Size