Documentation

Unity Engine

Download Unity

Unity Engine

ToArray()

Converts a NativeSlice<T> to managed array.
Read time 1 minuteLast updated 5 hours ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public readonly T[] ToArray()

Returns

Type

Description

<T>[]A managed array with a copy of the contents of the NativeSlice.