Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

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.