Ejemplo n.º 1
0
        private void DrawLogSettings([NotNull] DebugSettings settings)
        {
            _showLogSettings = EditorGUILayout.Foldout(_showLogSettings, "Log Levels");
            if (_showLogSettings)
            {
                EditorGUI.indentLevel++;

                for (int i = 0; i < _categoryNames.Length; i++)
                {
                    settings.SetLevel(_categoryValues[i], (LogLevel)EditorGUILayout.EnumPopup(_categoryNames[i], settings.GetLevel(_categoryValues[i])));
                }

                EditorGUI.indentLevel--;
            }
        }