文档

Unity Engine

Unity Engine

Update(WorldUnmanaged)

Update the system manually.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void Update(WorldUnmanaged world)

Parameters

The WorldUnmanaged for the World instance this handle belongs to.

Remarks

If a system manually calls another system's SystemHandle.Update method from inside its own ISystem.OnUpdate method, EntityQuery objects in the caller system might see unexpected and incorrect change version numbers based on the processing performed in the target system. For this reason, you shouldn't manually update one system from another if both systems are processing entity data, especially if either uses EntityQuery.SetChangedVersionFilter. This guidance doesn't apply to ComponentSystemGroup or other "pass-through" systems which only update other systems without manipulating entity data.