public void GetSceneColors()
        {
#if UNITY_4_6 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3
            foreach (var root in GamestrapUIHelper.GetSceneGameObjectRoots())
#else
            foreach (var root in UnityEngine.SceneManagement.SceneManager.GetActiveScene().GetRootGameObjects())
#endif
            {
                SearchColorsGameObject(root);
            }
        }
 private void OnShowScheme()
 {
     foreach (SchemeType schemeType in Enum.GetValues(typeof(SchemeType)))
     {
         Color[] paletteColors = GamestrapUIHelper.GetColorPalette(baseSchemeColor, schemeType);
         GUILayout.BeginHorizontal();
         GUILayout.Label(Regex.Replace(schemeType.ToString(), @"((?<=\p{Ll})\p{Lu})|((?!\A)\p{Lu}(?>\p{Ll}))", " $0"), GUILayout.Width(128));
         for (int i = 0; i < paletteColors.Length; i++)
         {
             GUI.backgroundColor = paletteColors[i]; // Sets the button color
             if (GUILayout.Button("", StylesUI.ColorButton))
             {
                 AssignColor(paletteColors[i], true);
             }
         }
         GUI.backgroundColor = bgColor; // Resets the color background
         GUILayout.EndHorizontal();
     }
 }