ドキュメント

Unity Engine

Unity Engine

ToNativeArray<T>(AllocatorHandle)

Returns a new NativeArray copy of this stream's data.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public NativeArray<T> ToNativeArray<T>(AllocatorManager.AllocatorHandle allocator) where T : unmanaged

Parameters

The allocator to use.

Returns

Type

Description

NativeArray<T>A new NativeArray copy of this stream's data.

Remarks

The length of the array will equal the count of this stream.
Each buffer of this stream is copied to the array, one after the other.