public override void DrawSpecificGUI() { Strength = Mathf.Max(0, EditorGUILayout.FloatField("Strength", Strength)); Radius = Mathf.Clamp(EditorGUILayout.IntField("Radius", Radius), 0, 32); Falloff = EditorGUILayout.CurveField("Falloff", Falloff, Color.white, new Rect(0, 0, 1, 1)); BrushShape = (EBrushShape)EditorGUILayout.EnumPopup("Shape", BrushShape); Flow = Mathf.Max(0, EditorGUILayout.FloatField("Flow", Flow)); }
public override void DrawSpecificGUI() { Strength = Mathf.Max(0, EditorGUILayout.FloatField("Strength", Strength)); Radius = Mathf.Clamp(EditorGUILayout.IntField("Radius", Radius), 0, 32); Falloff = EditorGUILayout.CurveField("Falloff", Falloff, Color.white, new Rect(0, 0, 1, 1)); BrushBlendMode = (MadMaps.Common.Painter.EBrushBlendMode)EditorGUILayout.EnumPopup("Blend Mode", BrushBlendMode); BrushShape = (MadMaps.Common.Painter.EBrushShape)EditorGUILayout.EnumPopup("Shape", BrushShape); if (BrushBlendMode == EBrushBlendMode.Add || BrushBlendMode == EBrushBlendMode.Subtract) { Flow = Mathf.Max(0, EditorGUILayout.FloatField("Flow", Flow)); } }