Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

NativeSliceUnsafeUtility.GetUnsafePtr

Declaration

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

Parameters

nativeSlice The NativeSlice to check.

Returns

void* The memory buffer pointer of nativeSlice.

Description

Gets a NativeSlice memory buffer pointer and checks whether the native array can be written to.