private void DrawColors() { int width = 24; int height = (int)EditorGUIUtility.singleLineHeight; var content = new GUIContent("", "MyGUI.Colors.Red"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Red, height); content = new GUIContent("", "MyGUI.Colors.Green"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Green, height); content = new GUIContent("", "MyGUI.Colors.Blue"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Blue, height); content = new GUIContent("", "MyGUI.Colors.Gray"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Gray, height); content = new GUIContent("", "MyGUI.Colors.Yellow"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Yellow, height); content = new GUIContent("", "MyGUI.Colors.Brown"); EditorGUILayout.LabelField(content, GUILayout.Width(width)); MyGUI.DrawBackgroundBox(MyGUI.Colors.Brown, height); }