Method Create
Create(int, AllocatorHandle, NativeArrayOptions)
Returns a new list.
Declaration
public static UnsafeList<T>* Create(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
Parameters
| Type | Name | Description |
|---|---|---|
| int | initialCapacity | The initial capacity of the list. |
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
| NativeArrayOptions | options | Whether newly allocated bytes should be zeroed out. |
Returns
| Type | Description |
|---|---|
| UnsafeList<T>* | A pointer to the new list. |