Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToArray()

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

Definition

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

Returns

Type

Description

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