docs.unity.cn
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023