| Parameter | Description |
|---|---|
| typeHandle | An object containing type and job safety information. To create this object, call ComponentSystemBase.GetComponentTypeHandle. Pass the object to a job using a public field you define as part of the job struct. |
| version | The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled. |
bool
True, if the version number stored in the chunk for this component is more recent than the version
passed to the version parameter.
Reports whether the data in any of IComponentData components in the chunk, of the type identified by
typeHandle, could have changed since the specified version.
When you access a component in a chunk with write privileges, the ECS framework updates the change version
of that component type to the current EntityManager.GlobalSystemVersion value. Since every
system stores the global system version in its ComponentSystemBase.LastSystemVersion field
when it updates, you can compare these two versions with this function in order to determine whether
the data of components in this chunk could have changed since the last time that system ran.
Note that for efficiency, the change version applies to whole chunks not individual entities. The change
version is updated even when another job or system that has declared write access to a component does
not actually change the component value.
| Parameter | Description |
|---|---|
| typeHandle | An object containing type and job safety information. To create this object, call ComponentSystemBase.GetDynamicComponentTypeHandle. Pass the object to a job using a public field you define as part of the job struct. |
| version | The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled. |
bool
True, if the version number stored in the chunk for this component is more recent than the version
passed to the version parameter.
Reports whether the data in any of IComponentData components in the chunk, of the type identified by
typeHandle, could have changed since the specified version.
When you access a component in a chunk with write privileges, the ECS framework updates the change version
of that component type to the current EntityManager.GlobalSystemVersion value. Since every
system stores the global system version in its ComponentSystemBase.LastSystemVersion field
when it updates, you can compare these two versions with this function in order to determine whether
the data of components in this chunk could have changed since the last time that system ran.
Note that for efficiency, the change version applies to whole chunks not individual entities. The change
version is updated even when another job or system that has declared write access to a component does
not actually change the component value.
| Parameter | Description |
|---|---|
| bufferTypeHandle | An object containing type and job safety information. To create this object, call ComponentSystemBase.GetBufferTypeHandle. Pass the object to a job using a public field you define as part of the job struct. |
| version | The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled. |
bool
True, if the version number stored in the chunk for this component is more recent than the version
passed to the version parameter.
Reports whether any of the data in dynamic buffer components in the chunk, of the type identified by
bufferTypeHandle, could have changed since the specified version.
When you access a component in a chunk with write privileges, the ECS framework updates the change version
of that component type to the current EntityManager.GlobalSystemVersion value. Since every
system stores the global system version in its ComponentSystemBase.LastSystemVersion field
when it updates, you can compare these two versions with this function in order to determine whether
the data of components in this chunk could have changed since the last time that system ran.
Note that for efficiency, the change version applies to whole chunks not individual entities. The change
version is updated even when another job or system that has declared write access to a component does
not actually change the component value.
| Parameter | Description |
|---|---|
| chunkSharedComponentData | An object containing type and job safety information. To create this object, call ComponentSystemBase.GetSharedComponentTypeHandle. Pass the object to a job using a public field you define as part of the job struct. |
| version | The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled. |
bool
True, if the version number stored in the chunk for this component is more recent than the version
passed to the version
Reports whether the value of shared components associated with the chunk, of the type identified by
chunkSharedComponentData, could have changed since the specified version.
Shared components behave differently than other types of components in terms of change versioning because
changing the value of a shared component can move an entity to a different chunk. If the change results
in an entity moving to a different chunk, then only the order version is updated (for both the original and
the receiving chunk). If you change the shared component value for all entities in a chunk at once, the
change version for that chunk is updated. The order version is unaffected.
Note that for efficiency, the change version applies to whole chunks not individual entities. The change
version is updated even when another job or system that has declared write access to a component does
not actually change the component value.
| Parameter | Description |
|---|---|
| typeHandle | An object containing type and job safety information. To create this object, call ComponentSystemBase.GetDynamicSharedComponentTypeHandle. |
| version | The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion. |
bool
True, if the version number stored in the chunk for this component is more recent than the version
passed to the version
Reports whether the value of shared components associated with the chunk, of the type identified by
typeHandle, could have changed since the specified version.
Shared components behave differently than other types of components in terms of change versioning because
changing the value of a shared component can move an entity to a different chunk. If the change results
in an entity moving to a different chunk, then only the order version is updated (for both the original and
the receiving chunk). If you change the shared component value for all entities in a chunk at once, the
change version for that chunk is updated. The order version is unaffected.
Note that for efficiency, the change version applies to whole chunks not individual entities. The change
version is updated even when another job or system that has declared write access to a component does
not actually change the component value.