Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

NativeArrayOptions

enumeration

Description

Options for controlling how memory is cleared.

You can either clear memory on allocation or leave it uninitialized. NativeArrayOptions.ClearMemory is the default.

Properties

UninitializedMemoryLeaves NativeArray<T0> memory uninitialized.
ClearMemoryClears NativeArray<T0> memory on allocation.