Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetNativeArray(BufferID)

Get the NativeArray used for storing buffers in the context.
Read time 1 minuteLast updated 6 days ago

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.