Struct ArchetypeChunk
A block of unmanaged memory containing the components for entities sharing the same Archetype.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public struct 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. |
Chunk |
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. |
Sequence |
SequenceNumber is a unique number for each chunk, across all worlds. |
Methods
Name | Description |
---|---|
Did |
Obsolete. Use Did |
Did |
Reports whether the data in any of IComponentData components in the chunk, of the type identified by
|
Did |
Obsolete. Use Did |
Did |
Reports whether the value of shared components associated with the chunk, of the type identified by
|
Did |
Obsolete. Use Did |
Did |
Reports whether any of the data in dynamic buffer components in the chunk, of the type identified by
|
Did |
Obsolete. Use Did |
Did |
Reports whether the data in any of IComponentData components in the chunk, of the type identified by
|
Did |
Reports whether the value of shared components associated with the chunk, of the type identified by
|
Did |
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(Archetype |
Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory. |
Get |
Obsolete. Use Get |
Get |
Provides access to a chunk's array of component values for a specific buffer component type. |
Get |
Obsolete. Use Get |
Get |
Gets the change version number assigned to the specified type of component in this chunk. |
Get |
Obsolete. Use Get |
Get |
Gets the change version number assigned to the specified type of shared component in this chunk. |
Get |
Obsolete. Use Get |
Get |
Gets the change version number assigned to the specified type of dynamic buffer component in this chunk. |
Get |
Obsolete. Use Get |
Get |
Gets the change version number assigned to the specified type of component in this chunk. |
Get |
Gets the change version number assigned to the specified type of shared component in this chunk. |
Get |
Obsolete. Use Get |
Get |
Gets the value of a chunk component. |
Get |
Provides an unsafe read-only interface to components stored in this chunk. |
Get |
Provides an unsafe read/write interface to components stored in this chunk. |
Get |
Obsolete. Use Get |
Get |
Construct a NativeArray view of a chunk's component data. |
Get |
Obsolete. Use Get |
Get |
Provides an unsafe interface to shared components stored in this chunk. |
Get |
Gets a copy of all the Enableable bits for the specified type handle. |
Get |
Provides a Enabled |
Get |
Provides a Enabled |
Get |
Provides a Enabled |
Get |
Provides an unsafe read-only interface to array of Entities stored in this chunk. |
Get |
Computes a hashcode to support hash-based collections. |
Get |
Obsolete. Use Get |
Get |
Provides access to a chunk's array of component values for a specific managed component type. |
Get |
Provides a native array interface to entity instances stored in this chunk. |
Get |
Obsolete. Use Get |
Get |
Provides a native array interface to components stored in this chunk. |
Get |
Gets the order version number assigned to this chunk. |
Get |
Provides an unsafe read-only interface to components stored in this chunk. This variant assumes that the
component is present in the chunk; use Get |
Get |
Provides an unsafe read/write interface to components stored in this chunk. This variant assumes that the
component is present in the chunk; use Get |
Get |
Obsolete. Use Get |
Get |
Gets the current value of a shared component. |
Get |
Obsolete. Use Get |
Get |
Obsolete. Use Get |
Get |
Obsolete. Use Get |
Get |
Gets the index into the array of unique values for the specified shared component. |
Get |
Gets the index into the array of unique values for the specified shared component. |
Get |
Gets the current value of a managed shared component. |
Get |
Gets the current value of an unmanaged shared component. |
Get |
Gets the current value of an unmanaged shared component. |
Get |
Give unsafe access to the buffers with type |
Has(Dynamic |
Obsolete. Use Has(ref Dynamic |
Has(ref Dynamic |
Reports whether this chunk contains the specified component type. |
Has(Dynamic |
Obsolete. Use Has(ref Dynamic |
Has(ref Dynamic |
Reports whether this chunk contains a shared component of the specified component type. |
Has |
Reports whether this chunk contains a chunk component of the specified component type. |
Has |
Obsolete. Use Has |
Has |
Reports whether this chunk contains a chunk component of the specified component type. |
Has<T>() | Reports whether this chunk contains the specified component type. |
Has<T>(Buffer |
Obsolete. Use Has<T>(ref Buffer |
Has<T>(ref Buffer |
Reports whether this chunk contains a dynamic buffer containing the specified component type. |
Has<T>(Component |
Obsolete. Use Has<T>(ref Component |
Has<T>(ref Component |
Reports whether this chunk contains the specified component type. |
Has<T>(Shared |
Reports whether this chunk contains a shared component of the specified component type. |
Invalid() | Reports whether this ArchetypeChunk instance is invalid. |
Is |
Checks whether a given IBuffer |
Is |
Obsolete. Use Is |
Is |
Checks whether a given IBuffer |
Is |
Obsolete. Use Is |
Is |
Checks whether a given IComponent |
Num |
The number of shared components in the archetype associated with this chunk. |
Set |
Obsolete. Use Set |
Set |
Sets the value of a chunk component. |
Set |
Enable or disable a IComponent |
Set |
Enable or disable a component on all entities in this chunk. |
Set |
Enable or disable an IBuffer |
Set |
Enable or disable a IComponent |
Set |
Obsolete. Use Set |
Set |
Enable or disable a IBuffer |
Set |
Obsolete. Use Set |
Set |
Enable or disable a IComponent |
Operators
Name | Description |
---|---|
operator ==(Archetype |
Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory. |
operator !=(Archetype |
Two ArchetypeChunk instances are only equal if they reference the same block of chunk and entity component store memory. |