Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeList

Initializes and returns a NativeList with a capacity of one.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

NativeList(AllocatorHandle)

Initializes and returns a NativeList with a capacity of one.
public NativeList(AllocatorManager.AllocatorHandle allocator)

Parameters

The allocator to use.

NativeList(int, AllocatorHandle)

Initializes and returns a NativeList.
public NativeList(int initialCapacity, AllocatorManager.AllocatorHandle allocator)

Parameters

initialCapacity

The initial capacity of the list.

The allocator to use.