文档

Unity Engine

Download Unity

Unity Engine

UpdateAllocator

Rewindable allocator instance for this World.
阅读时间1 分钟最后更新于 19 天前

Definition

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

Remarks

Useful for fast, thread-safe temporary memory allocations which do not need to be explicitly disposed. All allocations from this allocator are automatically disposed en masse after two full World updates. Behind the world update allocator are double rewindable allocators, and the two allocators are switched in each world update. Therefore user should not cache the world update allocator.