private void OnEnable()
        {
            if (!(qrCodeMarkerDetector is QRCodeMarkerDetector))
            {
                Debug.LogError("HeadsetCalibration is missing a valid QRCodeMarkerDetector");
            }
            if (!(arucoCodeMarkerDetector is ArUcoMarkerDetector))
            {
                Debug.LogError("HeadsetCalibration is missing a valid ArUcoMarkerDetector");
            }

            var detector = Application.platform == RuntimePlatform.WSAPlayerX86
                ? arucoCodeMarkerDetector as MonoBehaviour
                : qrCodeMarkerDetector as MonoBehaviour;

            detector.gameObject.SetActive(true);
            markerDetector = detector as IMarkerDetector;

            markerDetector.MarkersUpdated += OnMarkersUpdated;
            markerDetector.StartDetecting();
        }
 /// <inheritdoc />
 public override bool TryCreateLocalizationSession(IPeerConnection peerConnection, MarkerVisualDetectorLocalizationSettings settings, out ISpatialLocalizationSession session)
 {
     markerDetector = (markerDetector == null) ? MarkerDetector as IMarkerDetector : markerDetector;
     session        = new LocalizationSession(this, settings, peerConnection, debugLogging);
     return(true);
 }