using UnityEngine; using Sirenix.OdinInspector; public class GraphicsLevel : MonoBehaviour { public enum Graphics { Ultra = 0, VeryHigh = 1, High = 2, Medium = 3, Low = 4, VeryLow = 5, Lowest=6}; public static bool Ultra(Graphics gfx) => gfx == Graphics.Ultra; public static bool VeryHighOrMore(Graphics gfx) => gfx == Graphics.VeryHigh || Ultra(gfx); public static bool HighOrMore(Graphics gfx) => gfx == Graphics.High || VeryHighOrMore(gfx); public static bool MediumOrMore(Graphics gfx) => gfx == Graphics.Medium || HighOrMore(gfx); public static bool LowOrMore(Graphics gfx) => gfx == Graphics.Low || MediumOrMore(gfx); public static bool VeryLowOrMore(Graphics gfx) => gfx == Graphics.VeryLow || LowOrMore(gfx); [Button("Inspect This Class"), GUIColor(0.4f, 0.8f, 1f)] void InspectThisClass() { Sirenix.OdinInspector.Editor.StaticInspectorWindow.InspectType(typeof(GraphicsLevel)); } }