We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 571d134 + 529532c commit f8677f4Copy full SHA for f8677f4
1 file changed
Editor/UnityInputManagerAxisCreator.cs
@@ -182,8 +182,10 @@ private static bool AxisDefined(string axisName)
182
while (axesProperty.Next(false))
183
{
184
SerializedProperty axis = axesProperty.Copy();
185
- axis.Next(true);
186
- if (axis.stringValue == axisName) return true;
+ if (axis.Next(true))
+ {
187
+ if (axis.stringValue == axisName) return true;
188
+ }
189
}
190
return false;
191
0 commit comments