Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeKeyValueArrays(int, AllocatorHandle, NativeArrayOptions)

Initializes and returns an instance of NativeKeyValueArrays.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public NativeKeyValueArrays(int length, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options)

Parameters

length

The number of keys-value pairs.

The allocator to use.

Whether newly allocated bytes should be zeroed out.