xi/Assets/VolumetricFog/Editor/VolumetricFogEditorStyles.cs
杨号敬 e2f6da9586 FOG
2024-11-29 10:06:43 +08:00

25 lines
720 B
C#

using UnityEngine;
using UnityEditor;
using System.Collections;
namespace VolumetricFogAndMist {
public static class VolumetricFogEditorStyles {
public static void SetFoldoutColor(this GUIStyle style) {
Color foldoutColor = EditorGUIUtility.isProSkin ? new Color(0.52f, 0.66f, 0.9f) : new Color(0.12f, 0.16f, 0.4f);
style.normal.textColor = foldoutColor;
style.onNormal.textColor = foldoutColor;
style.hover.textColor = foldoutColor;
style.onHover.textColor = foldoutColor;
style.focused.textColor = foldoutColor;
style.onFocused.textColor = foldoutColor;
style.active.textColor = foldoutColor;
style.onActive.textColor = foldoutColor;
style.fontStyle = FontStyle.Bold;
}
}
}