Exemple #1
0
        private void DrawGUIShaderSelect()
        {
            GUILayout.BeginHorizontal();

            for (int i = 0; i < bcg.GetGraphCount(); i++)
            {
                if (selectedGraph == i)
                {
                    GUI.backgroundColor = Color.cyan;
                }
                else
                {
                    GUI.backgroundColor = Color.white;
                }

                if (GUILayout.Button(bcg.GetGraphName(i)))
                {
                    SaveNodes();
                    selectedGraph = i;
                    LoadNodes();
                    //bCyclesNeedsUpdate = true;
                }
            }
            GUI.backgroundColor = Color.white;
            GUILayout.EndHorizontal();
        }