-
Notifications
You must be signed in to change notification settings - Fork 325
NEW: Object picker for InputActionReference combining results from Project-wide Input Actions Asset and Project Input Actions Assets #1768
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8a40bb6
wip
ekcoh c5b7cff
wip object picker for Input Action References
ekcoh d7dd88c
Simplified the advance picker workflow. Add a MonoBehavior to test pi…
lochrist feba8d4
Refactoring
ekcoh cece135
Create advance picker in UITK
lochrist 48abd7f
Modified description to be possible to decipher when min zoom mode (f…
ekcoh 98d9b30
Fixed duplicates returned when loading project settings asset, modifi…
ekcoh 54eb471
Merge branch 'develop' into inspector-poc
ekcoh 260e8b3
Modified property drawer to rely on UITK to avoid bug in IMGUI versio…
ekcoh b2ec69c
Added workaround for Unity older than 2022_2
ekcoh f261264
Minor refactoring and cleanup relating to implemented functionality. …
ekcoh ae426ee
Fixed problem in InputActionAsset importer
ekcoh 1fd79e5
Removed test files that should never have been part of PR
ekcoh 1181c67
Simplified code, adressed filter from review.
ekcoh 46f677c
Merge branch 'develop' into inspector-poc
ekcoh efe707f
Removed comment that is obsolete due to it commenting on an internal …
ekcoh 33f11da
Merge branch 'inspector-poc' of github.com:Unity-Technologies/InputSy…
ekcoh 909cfa2
Merge branch 'develop' into inspector-poc
ekcoh f15abff
Merge branch 'develop' into inspector-poc
ekcoh 51b78c6
wip
ekcoh 203e978
Merge branch 'develop' into inspector-poc
jfreire-unity 2c76576
Change asset search provider to same logic as project-wide actions pr…
jfreire-unity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...es/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionAssetIconProvider.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#if UNITY_EDITOR | ||
using UnityEditor; | ||
|
||
namespace UnityEngine.InputSystem.Editor | ||
{ | ||
/// <summary> | ||
/// Provides access to icons associated with <code>InputActionAsset</code>. | ||
/// </summary> | ||
internal static class InputActionAssetIconProvider | ||
{ | ||
private const string kActionIcon = "Packages/com.unity.inputsystem/InputSystem/Editor/Icons/InputAction.png"; | ||
private const string kAssetIcon = "Packages/com.unity.inputsystem/InputSystem/Editor/Icons/InputActionAsset.png"; | ||
|
||
/// <summary> | ||
/// Attempts to load the icon associated with an <code>InputActionAsset</code> (.inputactions) asset. | ||
/// </summary> | ||
/// <returns>Icon resource reference or <code>null</code> if the resource could not be loaded.</returns> | ||
public static Texture2D LoadAssetIcon() | ||
{ | ||
return (Texture2D)EditorGUIUtility.Load(kAssetIcon); | ||
} | ||
|
||
/// <summary> | ||
/// Attempts to load the icon associated with an <code>InputActionReference</code> sub-asset of an | ||
/// <code>InputActionAsset</code> (.inputactions) asset. | ||
/// </summary> | ||
/// <returns>Icon resource reference or <code>null</code> if the resource could not be loaded.</returns> | ||
public static Texture2D LoadActionIcon() | ||
{ | ||
return (Texture2D)EditorGUIUtility.Load(kActionIcon); | ||
} | ||
} | ||
} | ||
|
||
#endif // #if UNITY_EDITOR |
3 changes: 3 additions & 0 deletions
3
...m.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionAssetIconProvider.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unclear to me why these tests are needed in this PR as they seem to be unrelated to the object picker. Maybe I'm missing something or this is just being used for testing.