Version: 2019.2

UnsafeUtility.CopyObjectAddressToPtr

Switch to Manual
public static void CopyObjectAddressToPtr (object target, void* dstPtr);

Description

Assigns an Object reference to a struct or pinned class. See Also: UnsafeUtility.PinGCObjectAndGetAddress.