UninitializedMemory
Leaves NativeArray<T> memory uninitialized.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Field
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
UninitializedMemory = 0
Remarks
Uninitialized memory can improve performance, but means that the contents of the NativeArray elements are undefined. In performance sensitive code you might use NativeArrayOptions.Uninitialized if you want to write to the entire array right after creating it without reading any of the elements first.