-
Notifications
You must be signed in to change notification settings - Fork 329
FIX: InputActionMap warnings when the UI map is not setup correctly (ISXB-1560) #2229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
6c1586c
2efad11
bcae7e7
0778d3e
284d736
56527d6
e74d53f
8ca84f4
76f6071
ba8fc29
8d7373e
4cbf7ec
c4306ad
62301af
b5ee4ff
6d0f19d
765ee06
4a697c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,7 +70,11 @@ public Context(InputActionAsset asset, | |
| private string GetAssetReference() | ||
| { | ||
| var path = AssetDatabase.GetAssetPath(asset); | ||
| return path ?? asset.name; | ||
| if (path == string.Empty) | ||
Darren-Kelly-Unity marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| return asset.name; | ||
| } | ||
| return path; | ||
| } | ||
|
|
||
| private void ActionMapWarning(string actionMap, string problem) | ||
|
|
@@ -92,6 +96,11 @@ public void Verify(string actionNameOrId, InputActionType actionType, string exp | |
|
|
||
| // Check if the map (if any) exists | ||
| var noMapOrMapExists = true; | ||
| if (asset.actionMaps.Count == 0) | ||
|
||
| { | ||
| return; | ||
| } | ||
|
|
||
| var index = actionNameOrId.IndexOf('/'); | ||
| if (index > 0) | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.