文档

Unity Engine

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\>.
阅读时间1 分钟最后更新于 1 个月前

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.