Skip to content

Commit

Permalink
feat: Add an option in the ToolbarMenu to record selected objects
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarianZ committed Dec 29, 2024
1 parent a7187e6 commit 6a79b3f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Editor/Scripts/AssetQuickAccessWindow.Toolbar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ private void DrawToolbar()
{
// Toolbar Menu
GenericMenu toolbarMenu = new GenericMenu();
if(Selection.objects != null && Selection.objects.Length > 0)
toolbarMenu.AddItem(new GUIContent("Add Selected Objects"), false, AddSelectedObjects);
toolbarMenu.AddItem(new GUIContent("Add External File"), false, AddExternalFile);
toolbarMenu.AddItem(new GUIContent("Add External Folder"), false, AddExternalFolder);
toolbarMenu.AddItem(new GUIContent("Add URL"), false, AddUrlEditor);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Pin frequently used Unity objects and external files/folders/urls to a separate editor window. An enhanced version of the Unity's Favorites feature.

This version is specifically developed for Unity **2019.4**. If you are using Unity 2021.3 and later versions, please use the [latest](https://github.com/SolarianZ/UnityAssetQuickAccessTool/releases/latest) version .
This version is specifically developed for Unity **2019.4**. If you are using Unity 2021.3 and later versions, please use the [**latest version**](https://github.com/SolarianZ/UnityAssetQuickAccessTool/releases/latest).

![Asset Quick Access Window](./Documents~/imgs/img_sample_asset_quick_access_window.png)

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

将常用的Unity对象和外部文件/文件夹/网址固定到独立的编辑器窗口中。Unity Favorites功能的增强版。

此版本专为 **Unity 2019.4** 开发。若Unity版本为2021.3+,请使用 [最新](https://github.com/SolarianZ/UnityAssetQuickAccessTool/releases/latest) 版本
此版本专为 **Unity 2019.4** 开发。若Unity版本为2021.3+,请使用 [**最新版本**](https://github.com/SolarianZ/UnityAssetQuickAccessTool/releases/latest)

![Asset Quick Access Window](./Documents~/imgs/img_sample_asset_quick_access_window.png)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.greenbamboogames.assetquickaccess",
"version": "1.4.2",
"version": "1.4.3",
"displayName": "Asset Quick Access!",
"description": "Pin frequently used objects to a separate editor window. An enhanced version of Unity's Favorites feature.",
"unity": "2019.4",
Expand Down

0 comments on commit 6a79b3f

Please sign in to comment.