Class GhostFixedListCapacityAttribute
Attribute used to explicitly instruct code-serialization to limit the fixed-size list capacity.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public class GhostFixedListCapacityAttribute : Attribute
Fields
Capacity
The maximum number of replicated elements. When the length of the list is larger than this threshold only the first MaxReplicatedElements are replicated.
Declaration
public uint Capacity
Field Value
Type | Description |
---|---|
uint |
Remarks
The MaxReplicatedElements must be always less or equal than 64 elements. The restriction is enforced at compile time.