Struct TypeManager.TypeInfo
Provides information about component types such as their runtime size, how much space they use in Chunk storage,
their Type
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
[GenerateTestsForBurstCompatibility]
public readonly struct TypeManager.TypeInfo
Constructors
Name | Description |
---|---|
Type |
Used internally to construct a TypeInfo. |
Fields
Name | Description |
---|---|
Alignment |
The alignment requirement for the component. For buffer types, this is the alignment requirement of the element type. |
Blob |
Number of Blob |
Buffer |
The maximum number of elements that can be stored in a buffer component instance. |
Category | |
Element |
The size of an element store in buffer components. For non-buffer component types, this is the same as Size |
Entity |
Number of Entity references this component can store. |
Maximum |
Maximum number of instances of this component allowed to be stored in a Chunk. |
Memory |
Sort order for component types in Chunk storage. By default this is equivalent to Stable |
Size |
The number of bytes used in a Chunk to store an instance of this component. |
Stable |
Hash used to uniquely identify a component based on its runtime memory footprint. |
Type |
|
Type |
Blittable size of the component type. |
Weak |
Number of Weak |
Write |
Number of components which specify this component as the target type in a Write |
Properties
Name | Description |
---|---|
Alignment |
Alignment of this type in a chunk. Normally the same as AlignmentInBytes, but that
might be less than this value for buffer elements, whereas the buffer itself must be aligned to Maximum |
Baking |
|
Debug |
Provides a HPC# / Burst compatible name of the component type when building with DEBUG defined. Otherwise the name is empty. |
Enableable |
|
Has |
For struct IComponentData, a value of true gurantees that there are Blob |
Has |
For struct IComponentData, a value of true gurantees that there are Weak |
Has |
Returns true if a component with a Write |
Is |
Returns true if the component does not require space in Chunk memory |
Temporary |
|
Type | Returns the System.Type for the component this Type |