Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DoubleRewindableAllocators

A double rewindable allocators RewindableAllocator.
Read time 1 minuteLast updated 9 days ago

Definition

public struct DoubleRewindableAllocators : IDisposable

Constructors

Constructor

Description

DoubleRewindableAllocators(Unity.Collections.AllocatorManager.AllocatorHandle,System.Int32)Construct a double rewindable allocators by allocating the allocators from backingAllocator and registering them.

Properties

Property

Description

AllocatorRetrieve the current rewindable allocator.
IsCreatedCheck whether the double rewindable allocators is created.

Methods

Method

Description

Disposethe double rewindable allocators and unregister it.
InitializeInitialize a double rewindable allocators by allocating the allocators from backingAllocator and registering them.
UpdateUpdate the double rewindable allocators, switch Pointer to another allocator and rewind the newly switched allocator.