public ARKitWorldTrackingSessionConfiguration( UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal, bool getPointCloudData = false, bool enableLightEstimation = false, bool enableAutoFocus = true, UnityAREnvironmentTexturing environmentTexturing = UnityAREnvironmentTexturing.UnityAREnvironmentTexturingNone, int maximumNumberOfTrackedImages = 0, IntPtr vidFormat = default(IntPtr), string refImageGroup = null, string refObjectGroup = null, ARWorldMap worldMap = null) { this.getPointCloudData = getPointCloudData; this.alignment = alignment; this.planeDetection = planeDetection; this.enableLightEstimation = enableLightEstimation; this.enableAutoFocus = enableAutoFocus; this.environmentTexturing = environmentTexturing; this.videoFormat = vidFormat; this.referenceImagesGroupName = refImageGroup; this.referenceObjectsGroupName = refObjectGroup; this.dynamicReferenceObjectsPtr = IntPtr.Zero; this.m_worldMapPtr = (worldMap == null) ? IntPtr.Zero : worldMap.nativePtr; this.maximumNumberOfTrackedImages = maximumNumberOfTrackedImages; }
public serializableARSessionConfiguration(UnityARAlignment align, UnityARPlaneDetection planeDet, bool getPtCloud, bool enableLightEst) { alignment = align; planeDetection = planeDet; getPointCloudData = getPtCloud; enableLightEstimation = enableLightEst; }
public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal, bool getPointCloudData = false, bool enableLightEstimation = false) { this.getPointCloudData = getPointCloudData; this.alignment = alignment; this.planeDetection = planeDetection; this.enableLightEstimation = enableLightEstimation; }
public ARKitObjectScanningSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.None, bool getPointCloudData = false, bool enableLightEstimation = false, bool enableAutoFocus = false) { this.alignment = alignment; this.planeDetection = planeDetection; this.getPointCloudData = getPointCloudData; this.enableLightEstimation = enableLightEstimation; this.enableAutoFocus = enableAutoFocus; }
public void PlaneDetectionOFF() { planeDetection = UnityARPlaneDetection.None; ARKitWorldTrackingSessionConfiguration config = new ARKitWorldTrackingSessionConfiguration(); config.planeDetection = planeDetection; config.alignment = startAlignment; config.getPointCloudData = false; config.enableLightEstimation = false; m_session.RunWithConfig(config); }
private void LockDectingPlane(string command) { if (command == "lock") { UnityARSessionNativeInterface m_session = UnityARSessionNativeInterface.GetARSessionNativeInterface(); UnityARPlaneDetection planeDetection = UnityARPlaneDetection.None; ARKitWorldTrackingSessionConfiguration config = new ARKitWorldTrackingSessionConfiguration(); config.planeDetection = planeDetection; config.alignment = UnityARAlignment.UnityARAlignmentGravity; config.getPointCloudData = false; config.enableLightEstimation = false; m_session.RunWithConfig(config); } }
public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal, bool getPointCloudData = false, bool enableLightEstimation = false, bool enableAutoFocus = true, IntPtr vidFormat = default(IntPtr), string arResourceGroup = null) { this.getPointCloudData = getPointCloudData; this.alignment = alignment; this.planeDetection = planeDetection; this.enableLightEstimation = enableLightEstimation; this.enableAutoFocus = enableAutoFocus; this.videoFormat = vidFormat; this.arResourceGroupName = arResourceGroup; }
public ARKitWorldTrackingSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity, UnityARPlaneDetection planeDetection = UnityARPlaneDetection.Horizontal, bool getPointCloudData = false, bool enableLightEstimation = false, bool enableAutoFocus = true, // // int maximumNumberOfTrackedImages = 0, // string refImageGroup = null, // IntPtr vidFormat = default(IntPtr), string arResourceGroup = null) { this.getPointCloudData = getPointCloudData; this.alignment = alignment; this.planeDetection = planeDetection; this.enableLightEstimation = enableLightEstimation; this.enableAutoFocus = enableAutoFocus; this.videoFormat = vidFormat; this.arResourceGroupName = arResourceGroup; // // this.maximumNumberOfTrackedImages = maximumNumberOfTrackedImages; // this.referenceImagesGroupName = refImageGroup; // }