Version: 2020.3

UnsafeUtility.AsRef<T>(void* ptr)

切换到手册

参数

ptr The pointer of struct to reference.

返回

void A reference to a value of type T.

描述

Gets a reference to the struct at its current location in memory.