public static IntPtr AnchorHandle(this ARAnchor anchor) { AnchorNativePointerStruct info = (AnchorNativePointerStruct) Marshal.PtrToStructure( anchor.nativePtr, typeof(AnchorNativePointerStruct)); return(info.AnchorHandle); }
public static IntPtr AnchorHandle(this ARAnchor anchor) { #if UNITY_EDITOR if (UnityEngine.Application.isEditor) { return(anchor.nativePtr); } #endif AnchorNativePointerStruct info = (AnchorNativePointerStruct) Marshal.PtrToStructure( anchor.nativePtr, typeof(AnchorNativePointerStruct)); return(info.AnchorHandle); }