CopyObjectAddressToPtr(object, void*)
Assigns an object reference to a struct or pinned class.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
CopyObjectAddressToPtr(Object, void*)
public static void CopyObjectAddressToPtr(object target, void* dstPtr)
Parameters
Remarks
Additional Resources: UnsafeUtility.PinGCObjectAndGetAddress.