Documentation

Unity Engine


Unity Engine


SetGroupAllocator(DoubleRewindableAllocators*)

Push group allocator into a stack.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void SetGroupAllocator(DoubleRewindableAllocators* newGroupAllocators)

Parameters

newGroupAllocators

The group allocator to push into a stack.

Remarks

System groups use the group allocator to rewind memory at a different rate from the world update. To do this, use the rate manager's ShouldGroupUpdate(), when pushing time into world. You can also set the group allocator to replace the world's update allocator. When popping time out of the world, you can rewind the allocator, and if not world owned update the allocator, and then restore the old allocator back.