This version of Unity is unsupported.

NativeSliceUnsafeUtility.GetUnsafeReadOnlyPtr

public static void* GetUnsafeReadOnlyPtr(NativeSlice<T> nativeSlice);

Parameters

nativeSlice NativeSlice.

Returns

void* Memory pointer.

Description

Get NativeSlice memory buffer pointer. Checks whether the native array can be read from.