文档

Unity Engine

Download Unity

Unity Engine

EntityManager

Return the entity manager this transaction operates upon.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Property
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityManager EntityManager { get; }

Remarks

Do not use this property to invoke arbitrary methods from an ExclusiveEntityTransaction because it is undefined behavior. Some EntityManager methods involve operations that are not safe to perform from worker threads, or which might work in certain contexts but fail in others. Only the operations exposed by the ExclusiveEntityTransaction struct are guaranteed to function correctly.