Version: 2022.3

UnsafeUtility.CopyObjectAddressToPtr

切换到手册
public static void CopyObjectAddressToPtr (object target, void* dstPtr);

描述

分配对结构或固定类的对象引用。另请参阅:UnsafeUtility.PinGCObjectAndGetAddress