OVRDebugInfo.Update C# (CSharp) Method

Update() private method

Updating VR variables and managing UI present
private Update ( ) : void
return void
    void Update()
    {
        if (initUIComponent && !isInited)
        {
            InitUIComponents();
        }

        if (Input.GetKeyDown(KeyCode.Space) && riftPresentTimeout < 0.0f)
        {
            initUIComponent = true;
            showVRVars ^= true;
        }

        UpdateDeviceDetection();

        // Presenting VR variables
        if (showVRVars)
        {
            debugUIManager.SetActive(true);
            UpdateVariable();
            UpdateStrings();           
        }
        else
        {
            debugUIManager.SetActive(false);
        }
    }