Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Reinterpret<T, U>(NativeArray<T>)

Returns the reinterpretation of this array into another kind of NativeArray. See \<a href="https://docs.unity3d.com/Packages/com.unity.collections@latest?subfolder=/manual/allocation.html#array-reinterpretation"\>Array reinterpretation\</a\>.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static NativeArray<U> Reinterpret<T, U>(this NativeArray<T> array) where T : unmanaged where U : unmanaged

Parameters

The array to reinterpret.

Returns

Type

Description

NativeArray<T>The reinterpretation of this array into another kind of NativeArray.