Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetUnsafeReadOnlyPtr<T>(NativeList<T>)

Returns a pointer to this list's internal buffer.
Read time 1 minuteLast updated 22 days ago

Definition

public static T* GetUnsafeReadOnlyPtr<T>(this NativeList<T> list) where T : unmanaged

Parameters

The list.

Returns

Type

Description

<T>*A pointer to this list's internal buffer.

Remarks

Performs a job safety check for read-only access.