Struct ComponentValue
128-byte self-contained component value used during entity spawning. Carries component type ID, data size, and up to 112 bytes of inline component data.
public struct ComponentValue
- Inherited Members
Remarks
Created exclusively via Set(in T) or Default().
Components larger than 112 bytes must use incremental spawn (spawn then write).
Layout: 4B ComponentTypeId + 4B DataSize + 4B reserved = 12B header, then 112B payload, then 4B pad = 128B.
Fields
MaxPayloadSize
Maximum payload size in bytes.
public const int MaxPayloadSize = 112