docs.unity.cn
    Show / Hide Table of Contents

    Field SizeInChunk

    The number of bytes used in a Unity.Entities.Chunk to store an instance of this component.

    Namespace: Unity.Entities
    Syntax
    public readonly int SizeInChunk
    Returns
    Type Description
    Int32
    Remarks

    Note that this includes internal capacity and header overhead for buffers. Also, note that components with no member variables will have a SizeInChunk of 0, but will have a TypeSize of GREATER than 0 (since C# does not allow for zero-sized types).

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023