# SetGroupAllocator(DoubleRewindableAllocators*)

> Push group allocator into a stack.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public void SetGroupAllocator(DoubleRewindableAllocators* newGroupAllocators)
```

### Parameters

**** (\[DoubleRewindableAllocators\*]\(/engine/7000.0/script-reference/unity/collections/doublerewindableallocators)): 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.
