기술 자료

Unity Engine

Unity Engine

GetUnsafePtr<T>(NativeArray<T>)

Gets the pointer to the memory buffer owner of a NativeArray, and checks whether there is write access to the NativeArray. If there is no write access to the NativeArray, an InvalidOperationException is thrown.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static void* GetUnsafePtr<T>(this NativeArray<T> nativeArray) where T : struct

Parameters

nativeArray

The NativeArray to check.

Returns

Type

Description

void*The memory buffer pointer of the NativeArray.