docs.unity.cn
    Show / Hide Table of Contents

    Constructor TypeInfo

    TypeInfo(Int32, TypeManager.TypeCategory, Int32, Int32, UInt64, UInt64, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Int32, Int32, Int32, Int32, Int32)

    Used internally to construct a TypeInfo.

    Declaration
    public TypeInfo(int typeIndex, TypeManager.TypeCategory category, int entityOffsetCount, int entityOffsetStartIndex, ulong memoryOrdering, ulong stableTypeHash, int bufferCapacity, int sizeInChunk, int elementSize, int alignmentInBytes, int maximumChunkCapacity, int writeGroupCount, int writeGroupStartIndex, bool hasBlobRefs, int blobAssetRefOffsetCount, int blobAssetRefOffsetStartIndex, int weakAssetRefOffsetCount, int weakAssetRefOffsetStartIndex, int typeSize)
    Parameters
    Type Name Description
    Int32 typeIndex

    TypeIndex to use

    TypeManager.TypeCategory category

    TypeCategory the component belongs to

    Int32 entityOffsetCount

    How many entity references a component contains (recursively)

    Int32 entityOffsetStartIndex

    Index into the entity offset array where this component's entity offset data begins

    UInt64 memoryOrdering

    The memory order for this component

    UInt64 stableTypeHash

    The stable type hash for this component

    Int32 bufferCapacity

    Number of elements that can be stored in chunk memory before falling back to a native allocation

    Int32 sizeInChunk

    Number of bytes the component requires in a chunk

    Int32 elementSize

    Size of the component. For Buffer components, this is the size of the element type

    Int32 alignmentInBytes

    Alignment of the component

    Int32 maximumChunkCapacity

    Max number of instances of this component to allow in a single chunk

    Int32 writeGroupCount

    Number of write groups targeting this component

    Int32 writeGroupStartIndex

    Index into the write group array where this component's write group info begins

    Boolean hasBlobRefs

    Value for if this component has any blob references (in case we force this value true/false)

    Int32 blobAssetRefOffsetCount

    Number of blob asset references the component really contains

    Int32 blobAssetRefOffsetStartIndex

    Index into the blob asset reference array where this component's blob asset reference data begins

    Int32 weakAssetRefOffsetCount

    Number of weak asset references this component contains

    Int32 weakAssetRefOffsetStartIndex

    Index into the weak asset reference array where this component's weak asset reference data begins

    Int32 typeSize

    Size of the component type

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