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

Switch to Manual

Parameters

ptrThe pointer to beginning of array of struct to reference.
indexIndex of element in array.

Returns

void A reference to a value of type T.

Description

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