docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetGroupAllocator

    SetGroupAllocator(DoubleRewindableAllocators*)

    Push group allocator into a stack.

    Declaration
    public void SetGroupAllocator(DoubleRewindableAllocators* newGroupAllocators)
    Parameters
    Type Name Description
    DoubleRewindableAllocators* 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)