This version of Unity is unsupported.

UnsafeUtility.AsRef<T>(void* ptr)

Parameters

ptr The pointer of struct to reference.

Returns

void A reference to a value of type T.

Description

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