Create(int, AllocatorHandle, NativeArrayOptions)
Returns a new list.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public static UnsafeList<T>* Create(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
Parameters
The initial capacity of the list.
The allocator to use.
Whether newly allocated bytes should be zeroed out.
Returns
Type | Description |
|---|---|
| UnsafeList<T>* | A pointer to the new list. |