Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UninitializedMemory

Leaves NativeArray<T> memory uninitialized.
Read time 1 minuteLast updated 6 days ago

Definition

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.