Unity-Technologies / InputSystem

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

FIX: Avoid nullrefs from right-clicking when there's no Action Maps (ISXB-833). #1898

Closed graham-huws closed 6 months ago

graham-huws commented 6 months ago

Description

Fix for ISXB-833, and some extra improvements.

Changes made

Simple nullref avoidance, plus: don't show impossible options (eg. Add Action when there's no Action Maps), and fix the fact that when Actions/Maps were empty, users couldn't right-click the space left by the empty tree/list to add a new item (for Action Maps, this is the "List is empty" text; for Actions the space is unlabelled).

Checklist

Before review:

During merge: