public void UpdateUI()
    {
        Toggle extTrackingToggle = FindUISelectableWithText <Toggle>("Extended");

        if (extTrackingToggle && mTrackableSettings)
        {
            extTrackingToggle.isOn = mTrackableSettings.IsExtendedTrackingEnabled();
        }

        Toggle flashToggle = FindUISelectableWithText <Toggle>("Flash");

        if (flashToggle && mCamSettings)
        {
            flashToggle.isOn = mCamSettings.IsFlashTorchEnabled();
        }

        Toggle autofocusToggle = FindUISelectableWithText <Toggle>("Autofocus");

        if (autofocusToggle && mCamSettings)
        {
            autofocusToggle.isOn = mCamSettings.IsAutofocusEnabled();
        }

        Toggle frontCamToggle = FindUISelectableWithText <Toggle>("FrontCamera");

        if (frontCamToggle && mCamSettings)
        {
            frontCamToggle.isOn = mCamSettings.IsFrontCameraActive();
        }
    }
Esempio n. 2
0
    public void UpdateUI()
    {
        Toggle extTrackingToggle = FindUISelectableWithText <Toggle>("Extended");

        if (extTrackingToggle && mTrackableSettings)
        {
            extTrackingToggle.isOn = mTrackableSettings.IsExtendedTrackingEnabled();
        }

        Toggle flashToggle = FindUISelectableWithText <Toggle>("Flash");

        if (flashToggle && mCamSettings)
        {
            flashToggle.isOn = mCamSettings.IsFlashTorchEnabled();
        }

        Toggle autofocusToggle = FindUISelectableWithText <Toggle>("Autofocus");

        if (autofocusToggle && mCamSettings)
        {
            autofocusToggle.isOn = mCamSettings.IsAutofocusEnabled();
        }

        Toggle frontCamToggle = FindUISelectableWithText <Toggle>("Front");

        if (frontCamToggle && mCamSettings)
        {
            frontCamToggle.isOn = mCamSettings.IsFrontCameraActive();
        }

        Toggle rearCamToggle = FindUISelectableWithText <Toggle>("Rear");

        if (rearCamToggle && mCamSettings)
        {
            rearCamToggle.isOn = !mCamSettings.IsFrontCameraActive();
        }

        Toggle stonesAndChipsToggle = FindUISelectableWithText <Toggle>("Stones");
        Toggle tarmacToggle         = FindUISelectableWithText <Toggle>("Tarmac");

        if (mTrackableSettings)
        {
            if (stonesAndChipsToggle && stonesAndChipsToggle.gameObject.activeInHierarchy)
            {
                stonesAndChipsToggle.isOn = mTrackableSettings.GetActiveDatasetName().Contains("Stones");
            }

            if (tarmacToggle && mTrackableSettings && tarmacToggle.gameObject.activeInHierarchy)
            {
                tarmacToggle.isOn = mTrackableSettings.GetActiveDatasetName().Contains("Tarmac");
            }
        }
    }
Esempio n. 3
0
    public void UpdateUI()
    {
        if (m_DeviceTrackerToggle && m_TrackableSettings)
        {
            m_DeviceTrackerToggle.isOn = m_TrackableSettings.IsDeviceTrackingEnabled();
        }

        if (m_FlashToggle && m_CameraSettings)
        {
            m_FlashToggle.isOn = m_CameraSettings.IsFlashTorchEnabled();
        }

        if (m_AutofocusToggle && m_CameraSettings)
        {
            m_AutofocusToggle.isOn = m_CameraSettings.IsAutofocusEnabled();
        }
    }
Esempio n. 4
0
    public void UpdateUI()
    {
        if (DeviceObserverToggle && deviceObserverSettings)
        {
            DeviceObserverToggle.isOn = deviceObserverSettings.IsDeviceObserverEnabled();
        }

        if (FlashToggle && CameraSettings)
        {
            FlashToggle.isOn = CameraSettings.IsFlashTorchEnabled();
        }

        if (AutofocusToggle && CameraSettings)
        {
            AutofocusToggle.isOn = CameraSettings.IsAutofocusEnabled();
        }

        if (StaticDTToggle && deviceObserverSettings)
        {
            StaticDTToggle.isOn = deviceObserverSettings.IsStaticDeviceTrackerEnabled();
        }
    }
Esempio n. 5
0
    public void UpdateUI()
    {
        if (m_ExtTrackingToggle && m_TrackableSettings)
        {
            m_ExtTrackingToggle.isOn = m_TrackableSettings.IsExtendedTrackingEnabled();
        }

        if (m_FlashToggle && m_CameraSettings)
        {
            m_FlashToggle.isOn = m_CameraSettings.IsFlashTorchEnabled();
        }

        if (m_AutofocusToggle && m_CameraSettings)
        {
            m_AutofocusToggle.isOn = m_CameraSettings.IsAutofocusEnabled();
        }

        if (m_FrontCamToggle && m_CameraSettings)
        {
            m_FrontCamToggle.isOn = m_CameraSettings.IsFrontCameraActive();
        }
    }