docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property UpdateAllocator

    UpdateAllocator

    Rewindable allocator instance for this World.

    Declaration
    public ref RewindableAllocator UpdateAllocator { get; }
    Property Value
    Type Description
    RewindableAllocator
    Remarks

    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.

    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)