GetChangeVersion(Entity, ComponentType)
Gets the version of a component in the chunk that holds an entity.
読み終わるまでの所要時間 1 分最終更新 2日前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static uint GetChangeVersion(Entity entity, ComponentType type)
Parameters
Returns
Type | Description |
|---|---|
| uint | The change version. |
Remarks
The version is the same one ArchetypeChunk.GetChangeVersion returns, so it is per chunk, not per entity. Writing to the component in any entity of the chunk sets it to the world's current EntityManager.GlobalSystemVersion. A structural change can also set it.