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

Parameters

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

Returns

void A reference to a value of type T.

Description

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


Did you find this page useful? Please give it a rating: