Struct ArchetypeChunk
A block of unmanaged memory containing the components for entities sharing the same Archetype.
Namespace: Unity.Entities
Syntax
public struct ArchetypeChunk : IEquatable<ArchetypeChunk>
Properties
Name | Description |
---|---|
Archetype | The archetype of the entities stored in this chunk. |
Capacity | The number of entities that can fit in this chunk. |
ChunkEntityCount | The number of entities currently stored in the chunk. |
Count | Returns the number of entities in the chunk. |
Full | Whether this chunk is exactly full. |
Null | A special "null" ArchetypeChunk that you can use to test whether ArchetypeChunk instances are valid. |
SequenceNumber | SequenceNumber is a unique number for each chunk, across all worlds. |
Methods
Name | Description |
---|---|
DidChange(DynamicComponentTypeHandle, UInt32) | Obsolete. Use DidChange(ref DynamicComponentTypeHandle, UInt32) instead. |
DidChange(ref DynamicComponentTypeHandle, UInt32) | Reports whether the data in any of IComponentData components in the chunk, of the type identified by
|
DidChange(DynamicSharedComponentTypeHandle, UInt32) | Obsolete. Use DidChange(ref DynamicSharedComponentTypeHandle, UInt32) |
DidChange(ref DynamicSharedComponentTypeHandle, UInt32) | Reports whether the value of shared components associated with the chunk, of the type identified by
|
DidChange<T>(BufferTypeHandle<T>, UInt32) | Obsolete. Use DidChange<T>(ref BufferTypeHandle<T>, UInt32) instead. |
DidChange<T>(ref BufferTypeHandle<T>, UInt32) | Reports whether any of the data in dynamic buffer components in the chunk, of the type identified by
|
DidChange<T>(ComponentTypeHandle<T>, UInt32) | Obsolete. Use DidChange<T>(ref ComponentTypeHandle<T>, UInt32) instead. |
DidChange<T>(ref ComponentTypeHandle<T>, UInt32) | Reports whether the data in any of IComponentData components in the chunk, of the type identified by
|
DidChange<T>(SharedComponentTypeHandle<T>, UInt32) | Reports whether the value of shared components associated with the chunk, of the type identified by
|
DidOrderChange(UInt32) | Reports whether a structural change has occured in this chunk since the specified version. |
Equals(Object) | Two ArchetypeChunk instances are equal if they reference the same block of chunk memory. |
Equals(ArchetypeChunk) | Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory. |
GetBufferAccessor<T>(BufferTypeHandle<T>) | Obsolete. Use GetBufferAccessor<T>(ref BufferTypeHandle<T>) instead. |
GetBufferAccessor<T>(ref BufferTypeHandle<T>) | Provides access to a chunk's array of component values for a specific buffer component type. |
GetChangeVersion(DynamicComponentTypeHandle) | Obsolete. Use GetChangeVersion(ref DynamicComponentTypeHandle) instead. |
GetChangeVersion(ref DynamicComponentTypeHandle) | Gets the change version number assigned to the specified type of component in this chunk. |
GetChangeVersion(DynamicSharedComponentTypeHandle) | Obsolete. Use GetChangeVersion(ref DynamicSharedComponentTypeHandle) instead. |
GetChangeVersion(ref DynamicSharedComponentTypeHandle) | Gets the change version number assigned to the specified type of shared component in this chunk. |
GetChangeVersion<T>(BufferTypeHandle<T>) | Obsolete. Use GetChangeVersion<T>(ref BufferTypeHandle<T>) instead. |
GetChangeVersion<T>(ref BufferTypeHandle<T>) | Gets the change version number assigned to the specified type of dynamic buffer component in this chunk. |
GetChangeVersion<T>(ComponentTypeHandle<T>) | Obsolete. Use GetChangeVersion<T>(ref ComponentTypeHandle<T>) instead. |
GetChangeVersion<T>(ref ComponentTypeHandle<T>) | Gets the change version number assigned to the specified type of component in this chunk. |
GetChangeVersion<T>(SharedComponentTypeHandle<T>) | Gets the change version number assigned to the specified type of shared component in this chunk. |
GetChunkComponentData<T>(ComponentTypeHandle<T>) | Obsolete. Use GetChunkComponentData<T>(ref ComponentTypeHandle<T>) instead. |
GetChunkComponentData<T>(ref ComponentTypeHandle<T>) | Gets the value of a chunk component. |
GetComponentDataPtrRO<T>(ref ComponentTypeHandle<T>) | Provides an unsafe read-only interface to components stored in this chunk. |
GetComponentDataPtrRW<T>(ref ComponentTypeHandle<T>) | Provides an unsafe read/write interface to components stored in this chunk. |
GetDynamicComponentDataArrayReinterpret<T>(DynamicComponentTypeHandle, Int32) | Obsolete. Use GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle, Int32) instead. |
GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle, Int32) | Construct a NativeArray view of a chunk's component data. |
GetDynamicSharedComponentDataAddress(DynamicSharedComponentTypeHandle) | Obsolete. Use GetDynamicSharedComponentDataAddress(ref DynamicSharedComponentTypeHandle) instead. |
GetDynamicSharedComponentDataAddress(ref DynamicSharedComponentTypeHandle) | Provides an unsafe interface to shared components stored in this chunk. |
GetEnableableBits(ref DynamicComponentTypeHandle) | Gets a copy of all the Enableable bits for the specified type handle. |
GetEnabledMask<T>(ref ComponentTypeHandle<T>) | Provides a ComponentEnabledMask to the component enabled bits in this chunk. |
GetEntityDataPtrRO(EntityTypeHandle) | Provides an unsafe read-only interface to array of Entities stored in this chunk. |
GetHashCode() | Computes a hashcode to support hash-based collections. |
GetManagedComponentAccessor<T>(ComponentTypeHandle<T>, EntityManager) | Obsolete. Use GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager) instead. |
GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager) | Provides access to a chunk's array of component values for a specific managed component type. |
GetNativeArray(EntityTypeHandle) | Provides a native array interface to entity instances stored in this chunk. |
GetNativeArray<T>(ComponentTypeHandle<T>) | Obsolete. Use GetNativeArray<T>(ref ComponentTypeHandle<T>) instead. |
GetNativeArray<T>(ref ComponentTypeHandle<T>) | Provides a native array interface to components stored in this chunk. |
GetOrderVersion() | Gets the order version number assigned to this chunk. |
GetRequiredComponentDataPtrRO<T>(ref ComponentTypeHandle<T>) | Provides an unsafe read-only interface to components stored in this chunk. This variant assumes that the component is present in the chunk; use GetComponentDataPtrRO<T>(ref ComponentTypeHandle<T>) in cases where the caller can't guarantee this. |
GetRequiredComponentDataPtrRW<T>(ref ComponentTypeHandle<T>) | Provides an unsafe read/write interface to components stored in this chunk. This variant assumes that the component is present in the chunk; use GetComponentDataPtrRW<T>(ref ComponentTypeHandle<T>) in cases where the caller can't guarantee this. |
GetSharedComponent<T>(SharedComponentTypeHandle<T>) | Gets the current value of an unmanaged shared component. |
GetSharedComponent<T>(SharedComponentTypeHandle<T>, EntityManager) | Gets the current value of an unmanaged shared component. |
GetSharedComponentData<T>(SharedComponentTypeHandle<T>, EntityManager) | Obsolete. Use GetSharedComponentManaged<T>(SharedComponentTypeHandle<T>, EntityManager) instead. |
GetSharedComponentDataBoxed(DynamicSharedComponentTypeHandle, EntityManager) | Obsolete. Use GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager) instead. |
GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager) | Gets the current value of a shared component. |
GetSharedComponentDataUnmanaged<T>(SharedComponentTypeHandle<T>) | Obsolete. Use GetSharedComponent<T>(SharedComponentTypeHandle<T>) instead. |
GetSharedComponentIndex(DynamicSharedComponentTypeHandle) | Obsolete. Use GetSharedComponentIndex(ref DynamicSharedComponentTypeHandle) instead. |
GetSharedComponentIndex(ref DynamicSharedComponentTypeHandle) | Gets the index into the array of unique values for the specified shared component. |
GetSharedComponentIndex<T>(SharedComponentTypeHandle<T>) | Gets the index into the array of unique values for the specified shared component. |
GetSharedComponentManaged<T>(SharedComponentTypeHandle<T>, EntityManager) | Gets the current value of a managed shared component. |
GetUntypedBufferAccessor(ref DynamicComponentTypeHandle) | Give unsafe access to the buffers with type |
Has(DynamicComponentTypeHandle) | Obsolete. Use Has(ref DynamicComponentTypeHandle) instead. |
Has(ref DynamicComponentTypeHandle) | Reports whether this chunk contains the specified component type. |
Has(DynamicSharedComponentTypeHandle) | Obsolete. Use Has(ref DynamicSharedComponentTypeHandle) instead. |
Has(ref DynamicSharedComponentTypeHandle) | Reports whether this chunk contains a shared component of the specified component type. |
Has<T>() | Reports whether this chunk contains the specified component type. |
Has<T>(BufferTypeHandle<T>) | Obsolete. Use Has<T>(ref BufferTypeHandle<T>) instead. |
Has<T>(ref BufferTypeHandle<T>) | Reports whether this chunk contains a dynamic buffer containing the specified component type. |
Has<T>(ComponentTypeHandle<T>) | Obsolete. Use Has<T>(ref ComponentTypeHandle<T>) instead. |
Has<T>(ref ComponentTypeHandle<T>) | Reports whether this chunk contains the specified component type. |
Has<T>(SharedComponentTypeHandle<T>) | Reports whether this chunk contains a shared component of the specified component type. |
HasChunkComponent<T>() | Reports whether this chunk contains a chunk component of the specified component type. |
HasChunkComponent<T>(ComponentTypeHandle<T>) | Obsolete. Use HasChunkComponent<T>(ref ComponentTypeHandle<T>) instead. |
HasChunkComponent<T>(ref ComponentTypeHandle<T>) | Reports whether this chunk contains a chunk component of the specified component type. |
Invalid() | Reports whether this ArchetypeChunk instance is invalid. |
IsComponentEnabled(ref DynamicComponentTypeHandle, Int32) | Checks whether a given IBufferElementData is enabled on the specified Entity. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
IsComponentEnabled<T>(BufferTypeHandle<T>, Int32) | Obsolete. Use IsComponentEnabled<T>(ref BufferTypeHandle<T>, Int32) instead. |
IsComponentEnabled<T>(ref BufferTypeHandle<T>, Int32) | Checks whether a given IBufferElementData is enabled on the specified Entity. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
IsComponentEnabled<T>(ComponentTypeHandle<T>, Int32) | Obsolete. Use IsComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32) instead. |
IsComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32) | Checks whether a given IComponentData is enabled on the specified Entity. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
NumSharedComponents() | The number of shared components in the archetype associated with this chunk. |
SetChunkComponentData<T>(ComponentTypeHandle<T>, T) | Obsolete. Use SetChunkComponentData<T>(ref ComponentTypeHandle<T>, T) instead. |
SetChunkComponentData<T>(ref ComponentTypeHandle<T>, T) | Sets the value of a chunk component. |
SetComponentEnabled(ref DynamicComponentTypeHandle, Int32, Boolean) | Enable or disable a IComponentData on the specified Entity. This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
SetComponentEnabled<T>(BufferTypeHandle<T>, Int32, Boolean) | Obsolete. Use SetComponentEnabled<T>(ref BufferTypeHandle<T>, Int32, Boolean) instead. |
SetComponentEnabled<T>(ref BufferTypeHandle<T>, Int32, Boolean) | Enable or disable a IBufferElementData on the specified Entity. This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
SetComponentEnabled<T>(ComponentTypeHandle<T>, Int32, Boolean) | Obsolete. Use SetComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32, Boolean) instead. |
SetComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32, Boolean) | Enable or disable a IComponentData on the specified Entity. This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
Operators
Name | Description |
---|---|
Equality(ArchetypeChunk, ArchetypeChunk) | Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory. |
Inequality(ArchetypeChunk, ArchetypeChunk) | Two ArchetypeChunk instances are only equal if they reference the same block of chunk and entity component store memory. |