Unity-Technologies / InputSystem

An efficient and versatile input system for Unity.
Other
1.43k stars 310 forks source link

FIX: ControlScheme names with spaces treated as null (ISXB-547) #1962

Closed timkeo closed 3 months ago

timkeo commented 3 months ago

Description

Fixes a minor UI bug in which the user can create a ControlScheme with a name consisting just of spaces. This is an invalid name string and causes various issues and should be handled the same as a null/empty string

Changes made

Updates the checks for null/empty string to also include OrWhiteSpace causing a default name to be used instead of the invalid string.

Testing

Verified the fix locally but didn't do any other testing.

Risk

A simple change with very low risk.

Checklist

Before review:

During merge:

After merge: