static void RegisterDescriptor() { var cinfo = new XRPlaneSubsystemDescriptor.Cinfo { id = "ARCore-Plane", subsystemImplementationType = typeof(ARCorePlaneProvider), supportsHorizontalPlaneDetection = true, supportsVerticalPlaneDetection = true, supportsArbitraryPlaneDetection = false, supportsBoundaryVertices = true }; XRPlaneSubsystemDescriptor.Create(cinfo); }
static void RegisterDescriptor() { #if UNITY_IOS && !UNITY_EDITOR var cinfo = new XRPlaneSubsystemDescriptor.Cinfo { id = "ARKit-Plane", subsystemImplementationType = typeof(ARKitXRPlaneSubsystem), supportsHorizontalPlaneDetection = true, supportsVerticalPlaneDetection = true, supportsArbitraryPlaneDetection = false, supportsBoundaryVertices = true }; XRPlaneSubsystemDescriptor.Create(cinfo); #endif }
static void RegisterDescriptor() { #if UNITY_EDITOR const string id = "ARKit-Remote-Plane"; var cinfo = new XRPlaneSubsystemDescriptor.Cinfo { id = id, subsystemImplementationType = typeof(ARKitXRPlaneRemoteSubsystem), supportsHorizontalPlaneDetection = true, supportsVerticalPlaneDetection = true, supportsArbitraryPlaneDetection = false, supportsBoundaryVertices = true, supportsClassification = true, }; XRPlaneSubsystemDescriptor.Create(cinfo); Debug.LogFormat("Registered the {0} subsystem", id); #endif }