Skip to content

Commit ba8fc29

Browse files
Add fix to only not show warnings when the UI action map is missing.
1 parent 76f6071 commit ba8fc29

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputActionAssetVerifier.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ static InputActionAssetVerifier()
3232
public void Verify(InputActionAsset asset,
3333
ProjectWideActionsAsset.IReportInputActionAssetVerificationErrors reporter)
3434
{
35+
if (asset.FindActionMap("UI", false) == null)
36+
{
37+
return;
38+
}
39+
3540
// Note:
3641
// PWA has initial state check true for "Point" action, DefaultActions do not, does it matter?
3742
//
@@ -92,10 +97,6 @@ public void Verify(string actionNameOrId, InputActionType actionType, string exp
9297

9398
// Check if the map (if any) exists
9499
var noMapOrMapExists = true;
95-
if (asset.actionMaps.Count == 0)
96-
{
97-
return;
98-
}
99100

100101
var index = actionNameOrId.IndexOf('/');
101102
if (index > 0)

0 commit comments

Comments
 (0)