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

WorldUnmanaged.UpdateAllocator

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

public ref RewindableAllocator UpdateAllocator;

Description

Rewindable allocator instance for this World.

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.