Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

World.SetGroupAllocator

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void SetGroupAllocator(doubleRewindableAllocators* newGroupAllocators);

Parameters

Parameter Description
newGroupAllocators The group allocator to push into a stack.

Description

Push group allocator into a stack.

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.