文档

Unity Engine

Unity Engine

GetNativeArray(BufferID)

Get the NativeArray used for storing buffers in the context.
阅读时间1 分钟最后更新于 1 个月前

Definition

public NativeArray<byte> GetNativeArray(BufferID id)

Parameters

ID of the buffer to get the underlying NativeArray from.

Returns

Type

Description

NativeArray<byte>The NativeArray of bytes for a given BufferID.

Remarks

The reference context is using NativeArray for storing the contents of buffers. This method will return the array.