示例#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);
            }
        }
示例#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);
            }
        }