Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

TypeManager.TypeInfo Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public TypeManager.TypeInfo(int typeIndex, TypeCategory category, int entityOffsetCount, int entityOffsetStartIndex, ulong memoryOrdering, ulong stableTypeHash, int bufferCapacity, int sizeInChunk, int elementSize, int alignmentInBytes, int maximumChunkCapacity, bool hasBlobRefs, int blobAssetRefOffsetCount, int blobAssetRefOffsetStartIndex, int weakAssetRefOffsetCount, int weakAssetRefOffsetStartIndex, bool hasUnityObjectRefs, int unityObjectRefOffsetCount, int unityObjectRefOffsetStartIndex, int typeSize, ulong bloomFilterMask);

Parameters

Parameter Description
typeIndex TypeIndex to use
category TypeCategory the component belongs to
entityOffsetCount How many entity references a component contains (recursively)
entityOffsetStartIndex Index into the entity offset array where this component's entity offset data begins
memoryOrdering The memory order for this component
stableTypeHash The stable type hash for this component
bufferCapacity Number of elements that can be stored in chunk memory before falling back to a native allocation
sizeInChunk Number of bytes the component requires in a chunk
elementSize Size of the component. For Buffer components, this is the size of the element type
alignmentInBytes Alignment of the component
maximumChunkCapacity Max number of instances of this component to allow in a single chunk
hasBlobRefs Value for if this component has any blob references (in case we force this value true/false)
blobAssetRefOffsetCount Number of blob asset references the component really contains
blobAssetRefOffsetStartIndex Index into the blob asset reference array where this component's blob asset reference data begins
weakAssetRefOffsetCount Number of weak asset references this component contains
weakAssetRefOffsetStartIndex Index into the weak asset reference array where this component's weak asset reference data begins
hasUnityObjectRefs Value for if this component has any Unity Object references (in case we force this value true/false)
unityObjectRefOffsetCount Number of Unity Object references the component really contains
unityObjectRefOffsetStartIndex Index into the Unity Object reference array where this component's Unity Object reference data begins
typeSize Size of the component type
bloomFilterMask The bloom filter mask for this component, used to accelerate "is type T in set of types S" checks. The default value of zero is safe, but ineffective.

Description

Used internally to construct a TypeInfo.


Obsolete Write groups are deprecated and will be removed. (RemovedAfter Entities 6.7).

Declaration

public TypeManager.TypeInfo(int typeIndex, 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, bool hasUnityObjectRefs, int unityObjectRefOffsetCount, int unityObjectRefOffsetStartIndex, int typeSize, ulong bloomFilterMask);

Parameters

Parameter Description
typeIndex TypeIndex to use
category TypeCategory the component belongs to
entityOffsetCount How many entity references a component contains (recursively)
entityOffsetStartIndex Index into the entity offset array where this component's entity offset data begins
memoryOrdering The memory order for this component
stableTypeHash The stable type hash for this component
bufferCapacity Number of elements that can be stored in chunk memory before falling back to a native allocation
sizeInChunk Number of bytes the component requires in a chunk
elementSize Size of the component. For Buffer components, this is the size of the element type
alignmentInBytes Alignment of the component
maximumChunkCapacity Max number of instances of this component to allow in a single chunk
writeGroupCount Ignored.
writeGroupStartIndex Ignored.
hasBlobRefs Value for if this component has any blob references (in case we force this value true/false)
blobAssetRefOffsetCount Number of blob asset references the component really contains
blobAssetRefOffsetStartIndex Index into the blob asset reference array where this component's blob asset reference data begins
weakAssetRefOffsetCount Number of weak asset references this component contains
weakAssetRefOffsetStartIndex Index into the weak asset reference array where this component's weak asset reference data begins
hasUnityObjectRefs Value for if this component has any Unity Object references (in case we force this value true/false)
unityObjectRefOffsetCount Number of Unity Object references the component really contains
unityObjectRefOffsetStartIndex Index into the Unity Object reference array where this component's Unity Object reference data begins
typeSize Size of the component type
bloomFilterMask The bloom filter mask for this component, used to accelerate "is type T in set of types S" checks. The default value of zero is safe, but ineffective.

Description

Obsolete. Used internally to construct a TypeInfo. Write group information is no longer stored in TypeInfo; the writeGroupCount and writeGroupStartIndex arguments are ignored.