NativeArrayOptions
Options for controlling how memory is cleared.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Enum
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
public enum NativeArrayOptions
Remarks
You can either clear memory on allocation or leave it uninitialized. NativeArrayOptions.ClearMemory is the default.
Fields
Value | Description |
|---|---|
| ClearMemory | Clears NativeArray<T> memory on allocation. |
| UninitializedMemory | Leaves NativeArray<T> memory uninitialized. |