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

World.RestoreGroupAllocator

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 RestoreGroupAllocator(doubleRewindableAllocators* oldGroupAllocators);

Parameters

Parameter Description
oldGroupAllocators The group allocator to pop from the stack.

Description

Pop group allocator out of the stack.

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