UnsafeUtility.AsRef<T>(void* ptr)

Switch to Manual

Parameters

ptrThe 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.