Skip to content

Commit 6a79b3f

Browse files
committed
feat: Add an option in the ToolbarMenu to record selected objects
1 parent a7187e6 commit 6a79b3f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Editor/Scripts/AssetQuickAccessWindow.Toolbar.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ private void DrawToolbar()
5858
{
5959
// Toolbar Menu
6060
GenericMenu toolbarMenu = new GenericMenu();
61+
if(Selection.objects != null && Selection.objects.Length > 0)
62+
toolbarMenu.AddItem(new GUIContent("Add Selected Objects"), false, AddSelectedObjects);
6163
toolbarMenu.AddItem(new GUIContent("Add External File"), false, AddExternalFile);
6264
toolbarMenu.AddItem(new GUIContent("Add External Folder"), false, AddExternalFolder);
6365
toolbarMenu.AddItem(new GUIContent("Add URL"), false, AddUrlEditor);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

7-
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 .
7+
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).
88

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

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

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

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.greenbamboogames.assetquickaccess",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"displayName": "Asset Quick Access!",
55
"description": "Pin frequently used objects to a separate editor window. An enhanced version of Unity's Favorites feature.",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)