Version: 2022.1

UnsafeUtility.ArrayElementAsRef<T>(void* ptr, int index)

切换到手册

参数

ptr The pointer to beginning of array of struct to reference.
index Index of element in array.

返回

void A reference to a value of type T.

描述

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