Skip to content

Commit 5c56992

Browse files
committed
let's see if we can get away with cutting the whole OnGUI method altogether
1 parent b0ada69 commit 5c56992

File tree

12 files changed

+0
-49
lines changed

12 files changed

+0
-49
lines changed

Assets/Samples/CustomComposite/CustomComposite.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ public override Vector2 ReadValue(ref InputBindingCompositeContext context)
134134
#if UNITY_EDITOR
135135
public class CustomCompositeEditor : InputParameterEditor<CustomComposite>
136136
{
137-
public override void OnGUI()
138-
{
139-
}
140-
141137
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
142138
{
143139
var slider = new Slider(m_ScaleFactorLabel.text, 0, 2)

Packages/com.unity.inputsystem/InputSystem/Actions/Composites/AxisComposite.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ internal class AxisCompositeEditor : InputParameterEditor<AxisComposite>
216216
+ "If 'Neither' is selected, the result is 0 (or, more precisely, "
217217
+ "the midpoint between minValue and maxValue).";
218218

219-
public override void OnGUI()
220-
{
221-
}
222-
223219
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
224220
{
225221
var modeField = new EnumField(label, target.whichSideWins)

Packages/com.unity.inputsystem/InputSystem/Actions/Composites/Vector2Composite.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@ internal class Vector2CompositeEditor : InputParameterEditor<Vector2Composite>
196196
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
197197
+ "floating-point magnitudes as read from controls.";
198198

199-
public override void OnGUI()
200-
{
201-
}
202-
203199
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
204200
{
205201
var modeField = new EnumField(label, target.mode)

Packages/com.unity.inputsystem/InputSystem/Actions/Composites/Vector3Composite.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,6 @@ internal class Vector3CompositeEditor : InputParameterEditor<Vector3Composite>
176176
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
177177
+ "floating-point magnitudes as read from controls.";
178178

179-
public override void OnGUI()
180-
{
181-
}
182-
183179
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
184180
{
185181
var modeField = new EnumField(label, target.mode)

Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/HoldInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ protected override void OnEnable()
122122
() => target.duration, x => target.duration = x, () => InputSystem.settings.defaultHoldTime);
123123
}
124124

125-
public override void OnGUI()
126-
{
127-
}
128-
129125
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
130126
{
131127
m_PressPointSetting.OnDrawVisualElements(root, onChangedCallback);

Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/MultiTapInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,6 @@ protected override void OnEnable()
192192
() => InputSystem.settings.defaultButtonPressPoint);
193193
}
194194

195-
public override void OnGUI()
196-
{
197-
}
198-
199195
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
200196
{
201197
var tapCountField = new IntegerField(tapLabel)

Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/PressInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ protected override void OnEnable()
208208
() => InputSystem.settings.defaultButtonPressPoint);
209209
}
210210

211-
public override void OnGUI()
212-
{
213-
}
214-
215211
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
216212
{
217213
root.Add(new HelpBox(helpLabel, HelpBoxMessageType.None));

Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/SlowTapInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ protected override void OnEnable()
8585
() => InputSystem.settings.defaultButtonPressPoint);
8686
}
8787

88-
public override void OnGUI()
89-
{
90-
}
91-
9288
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
9389
{
9490
m_DurationSetting.OnDrawVisualElements(root, onChangedCallback);

Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/TapInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ protected override void OnEnable()
111111
() => InputSystem.settings.defaultButtonPressPoint);
112112
}
113113

114-
public override void OnGUI()
115-
{
116-
}
117-
118114
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
119115
{
120116
m_DurationSetting.OnDrawVisualElements(root, onChangedCallback);

Packages/com.unity.inputsystem/InputSystem/Controls/Processors/AxisDeadzoneProcessor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ protected override void OnEnable()
9090
() => InputSystem.settings.defaultDeadzoneMax);
9191
}
9292

93-
public override void OnGUI()
94-
{
95-
}
96-
9793
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
9894
{
9995
m_MinSetting.OnDrawVisualElements(root, onChangedCallback);

0 commit comments

Comments
 (0)