Skip to content

Commit 1b262b4

Browse files
K-Toneekcoh
andcommitted
Apply suggestions from code review
Co-authored-by: Håkan Sidenvall <[email protected]>
1 parent 9996eac commit 1b262b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public enum WhichSideWins
212212
internal class AxisCompositeEditor : InputParameterEditor<AxisComposite>
213213
{
214214
private const string label = "Which Side Wins";
215-
private const string tooltip = "Determine which axis 'wins' if both are actuated at the same time. "
215+
private const string tooltipText = "Determine which axis 'wins' if both are actuated at the same time. "
216216
+ "If 'Neither' is selected, the result is 0 (or, more precisely, "
217217
+ "the midpoint between minValue and maxValue).";
218218

@@ -224,7 +224,7 @@ public override void OnDrawVisualElements(VisualElement root, Action onChangedCa
224224
{
225225
var modeField = new EnumField(label, target.whichSideWins)
226226
{
227-
tooltip = tooltip
227+
tooltip = tooltipText
228228
};
229229

230230
modeField.RegisterValueChangedCallback(evt =>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public enum Mode
192192
internal class Vector2CompositeEditor : InputParameterEditor<Vector2Composite>
193193
{
194194
private const string label = "Mode";
195-
private const string tooltip = "How to synthesize a Vector2 from the inputs. Digital "
195+
private const string tooltipText = "How to synthesize a Vector2 from the inputs. Digital "
196196
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
197197
+ "floating-point magnitudes as read from controls.";
198198

@@ -204,7 +204,7 @@ public override void OnDrawVisualElements(VisualElement root, Action onChangedCa
204204
{
205205
var modeField = new EnumField(label, target.mode)
206206
{
207-
tooltip = tooltip
207+
tooltip = tooltipText
208208
};
209209

210210
modeField.RegisterValueChangedCallback(evt =>

0 commit comments

Comments
 (0)