Exemplo n.º 1
0
        public void SwitchBorders()
        {
            bordersOn = !bordersOn;
            UserTrackerVisualization utv = FindObjectOfType <UserTrackerVisualization>();

            if (utv != null)
            {
                utv.SetShaderProperties(showBackground, bordersOn);
            }

            UserTrackerVisMesh utvm = FindObjectOfType <UserTrackerVisMesh>();

            if (utvm != null)
            {
                utvm.SetShaderProperties(showBackground, bordersOn);
            }
        }
Exemplo n.º 2
0
        public void SwitchBackground(bool bgEnabled)
        {
            showBackground = bgEnabled;
            //currentBGColor = (currentBGColor + 1) % backgroundColors.Length;
            UserTrackerVisualization utv = FindObjectOfType <UserTrackerVisualization>();

            if (utv != null)
            {
                utv.SetShaderProperties(showBackground, bordersOn);
            }

            UserTrackerVisMesh utvm = FindObjectOfType <UserTrackerVisMesh>();

            if (utvm != null)
            {
                utvm.SetShaderProperties(showBackground, bordersOn);
            }
        }
Exemplo n.º 3
0
        public void SwitchDepthVisualisation(bool meshEnabled)
        {
            UserTrackerVisualization utv = FindObjectOfType <UserTrackerVisualization>();

            if (utv != null)
            {
                utv.SetActive(!meshEnabled);
            }

            UserTrackerVisMesh utvm = FindObjectOfType <UserTrackerVisMesh>();

            if (utvm != null)
            {
                utvm.SetActive(meshEnabled);
            }

            SwitchBackground(tBackground.isOn);
        }