Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeRingQueue(int, AllocatorHandle, NativeArrayOptions)

Initializes and returns an instance of NativeRingQueue.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public NativeRingQueue(int capacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)

Parameters

capacity

The capacity.

The allocator to use.

Whether newly allocated bytes should be zeroed out.