コード例 #1
0
 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;
 }
コード例 #2
0
 public serializableARSessionConfiguration(UnityARAlignment align, UnityARPlaneDetection planeDet, bool getPtCloud, bool enableLightEst)
 {
     alignment             = align;
     planeDetection        = planeDet;
     getPointCloudData     = getPtCloud;
     enableLightEstimation = enableLightEst;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ARKitSessionConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity,
                                  bool getPointCloudData     = false,
                                  bool enableLightEstimation = false)
 {
     this.getPointCloudData     = getPointCloudData;
     this.alignment             = alignment;
     this.enableLightEstimation = enableLightEstimation;
 }
コード例 #5
0
 public ARKitFaceTrackingConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity,
                                       bool enableLightEstimation = false,
                                       IntPtr vidFormat           = default(IntPtr))
 {
     this.alignment             = alignment;
     this.enableLightEstimation = enableLightEstimation;
     videoFormat = vidFormat;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
     //
 }
コード例 #9
0
 public ARKitFaceTrackingConfiguration(UnityARAlignment alignment = UnityARAlignment.UnityARAlignmentGravity,
                                       bool enableLightEstimation = false)
 {
     this.alignment             = alignment;
     this.enableLightEstimation = enableLightEstimation;
 }