# GetNativeArray(BufferID)

> Get the NativeArray used for storing buffers in the context.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LightTransport](/engine/6000.7/script-reference/unityengine/lighttransport.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public NativeArray<byte> GetNativeArray(BufferID id)
```

### Parameters

**** (\[BufferID]\(/engine/6000.7/script-reference/unityengine/lighttransport/bufferid)): ID of the buffer to get the underlying NativeArray from.

### Returns

| Type                                                                                    | Description                                                                                                              |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| [NativeArray\<byte>](/engine/6000.7/script-reference/unity/collections/nativearray1.md) | The NativeArray of bytes for a given [BufferID](/engine/6000.7/script-reference/unityengine/lighttransport/bufferid.md). |

### Remarks

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