Skip to content

Commit

Permalink
Added Assets menu's built-in buttons to BasketWindow's context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed Nov 19, 2024
1 parent 29cc077 commit acad4a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Plugins/InspectPlus/Editor/BasketWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,12 @@ protected override void ContextClicked()
{
GenericMenu contextMenu = new GenericMenu();
contextMenu.AddItem( new GUIContent( "Remove" ), false, () => RemoveObjects( GetSelection() ) );
contextMenu.AddSeparator( "" );
foreach( string builtInMenuItem in Unsupported.GetSubmenus( "Assets" ) )
{
if( !builtInMenuItem.StartsWith( "Assets/Create" ) && builtInMenuItem != "Assets/Rename" && builtInMenuItem != "Assets/Delete" )
contextMenu.AddItem( new GUIContent( builtInMenuItem ), false, () => EditorApplication.ExecuteMenuItem( builtInMenuItem ) );
}
contextMenu.ShowAsContext();

if( Event.current != null && Event.current.type == EventType.ContextClick )
Expand Down
2 changes: 1 addition & 1 deletion Plugins/InspectPlus/README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Inspect+ (v1.9.0) =
= Inspect+ (v1.9.1) =

Documentation: https://github.com/yasirkula/UnityInspectPlus
E-mail: yasirkula@gmail.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.inspectplus",
"displayName": "Inspect+",
"version": "1.9.0",
"version": "1.9.1",
"documentationUrl": "https://github.com/yasirkula/UnityInspectPlus",
"changelogUrl": "https://github.com/yasirkula/UnityInspectPlus/releases",
"licensesUrl": "https://github.com/yasirkula/UnityInspectPlus/blob/master/LICENSE.txt",
Expand Down

0 comments on commit acad4a2

Please sign in to comment.