# TypeManager.TypeInfo

> Provides information about component types such as their runtime size, how much space they use in Chunk storage, their TypeManager.TypeInfo.TypeIndex, how many entity references they contain, and more.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public readonly struct TypeManager.TypeInfo
```

## Fields

| Value                                                                                                                     | Description                                                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AlignmentInBytes](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/alignmentinbytes.md)               | The alignment requirement for the component. For buffer types, this is the alignment requirement of the element type.                                                                                                                                   |
| [BlobAssetRefOffsetCount](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/blobassetrefoffsetcount.md) | Number of [BlobAssetReference\<T>](/engine/7000.0/script-reference/unity/entities/blobassetreference1.md)s this component can store.                                                                                                                    |
| [BloomFilterMask](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/bloomfiltermask.md)                 | Bitmask used to accelerate "is type set A a subset of type set B?" queries.                                                                                                                                                                             |
| [BufferCapacity](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/buffercapacity.md)                   | The maximum number of elements that can be stored in a buffer component instance.                                                                                                                                                                       |
| [Category](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/category.md)                               | [TypeManager.TypeCategory](/engine/7000.0/script-reference/unity/entities/typemanager/typecategory.md)                                                                                                                                                  |
| [ElementSize](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/elementsize.md)                         | The size of an element store in buffer components. For non-buffer component types, this is the same as [TypeManager.TypeInfo.SizeInChunk](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/sizeinchunk.md)                           |
| [EntityOffsetCount](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/entityoffsetcount.md)             | Number of [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) references this component can store.                                                                                                                                       |
| [MaximumChunkCapacity](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/maximumchunkcapacity.md)       | Maximum number of instances of this component allowed to be stored in a Chunk.                                                                                                                                                                          |
| [MemoryOrdering](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/memoryordering.md)                   | Sort order for component types in Chunk storage. By default this is equivalent to [TypeManager.TypeInfo.StableTypeHash](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/stabletypehash.md). Order is sorted from lowest to highest. |
| [SizeInChunk](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/sizeinchunk.md)                         | The number of bytes used in a Chunk to store an instance of this component.                                                                                                                                                                             |
| [StableTypeHash](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/stabletypehash.md)                   | Hash used to uniquely identify a component based on its runtime memory footprint.                                                                                                                                                                       |
| [TypeIndex](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/typeindex.md)                             | [TypeManager.TypeInfo.TypeIndex](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/typeindex.md)                                                                                                                                      |
| [TypeSize](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/typesize.md)                               | Blittable size of the component type.                                                                                                                                                                                                                   |
| [WeakAssetRefOffsetCount](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/weakassetrefoffsetcount.md) | Number of WeakReference\_1s this component can store.                                                                                                                                                                                                   |

## Constructors

| Constructor                                                                                                                                                                                                                                                                                                                                                                                                 | Description                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [TypeInfo(System.Int32,Unity.Entities.TypeManager.TypeCategory,System.Int32,System.Int32,System.UInt64,System.UInt64,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Int32,System.Int32,System.Int32,System.UInt64)](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/ctor.md) | Used internally to construct a TypeInfo. |

## Properties

| Property                                                                                                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AlignmentInChunkInBytes](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/alignmentinchunkinbytes.md) | 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 [TypeManager.MaximumSupportedAlignment](/engine/7000.0/script-reference/unity/entities/typemanager/maximumsupportedalignment.md).                                                                                                                                                             |
| [BakingOnlyType](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/bakingonlytype.md)                   | [TypeIndex.IsBakingOnlyType](/engine/7000.0/script-reference/unity/entities/typeindex/isbakingonlytype.md)                                                                                                                                                                                                                                                                                                                                                                        |
| [DebugTypeName](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/debugtypename.md)                     | Provides a HPC# / Burst compatible name of the component type when building with DEBUG defined. Otherwise the name is empty.                                                                                                                                                                                                                                                                                                                                                      |
| [EnableableType](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/enableabletype.md)                   | [TypeIndex.IsEnableable](/engine/7000.0/script-reference/unity/entities/typeindex/isenableable.md)                                                                                                                                                                                                                                                                                                                                                                                |
| [HasBlobAssetRefs](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/hasblobassetrefs.md)               | For struct IComponentData, a value of true guarantees that there are [BlobAssetReference\<T>](/engine/7000.0/script-reference/unity/entities/blobassetreference1.md) fields in this component. For class based IComponentData, a value of true means it is possible, but not guaranteed, that there are blob asset references. (Polymorphic [BlobAssetReference\<T>](/engine/7000.0/script-reference/unity/entities/blobassetreference1.md) members can not be proven statically) |
| [HasUnityObjectRefs](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/hasunityobjectrefs.md)           | Returns whether there are any UnityObjectRefs fields in this component.                                                                                                                                                                                                                                                                                                                                                                                                           |
| [HasWeakAssetRefs](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/hasweakassetrefs.md)               | For struct IComponentData, a value of true guarantees that there are WeakReference\_1 fields in this component. For class based IComponentData, a value of true means it is possible, but not guaranteed, that there are WeakReferences. (Polymorphic WeakReference\_1 members can not be proven statically)                                                                                                                                                                      |
| [IsZeroSized](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/iszerosized.md)                         | Returns true if the component does not require space in Chunk memory                                                                                                                                                                                                                                                                                                                                                                                                              |
| [TemporaryBakingType](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/temporarybakingtype.md)         | [TypeIndex.IsTemporaryBakingType](/engine/7000.0/script-reference/unity/entities/typeindex/istemporarybakingtype.md)                                                                                                                                                                                                                                                                                                                                                              |
| [Type](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/type.md)                                       | Returns the System.Type for the component this [TypeManager.TypeInfo](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo.md) is describing.                                                                                                                                                                                                                                                                                                                      |
