From 054d06f49e1c61a0a90586a2ad2c446b6b8d165e Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sat, 15 Feb 2025 17:38:03 +0100 Subject: [PATCH] add rmb menu entry to show item in Content Panel --- Source/Editor/Windows/ContentWindow.ContextMenu.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Editor/Windows/ContentWindow.ContextMenu.cs b/Source/Editor/Windows/ContentWindow.ContextMenu.cs index 182467566..292ec79c5 100644 --- a/Source/Editor/Windows/ContentWindow.ContextMenu.cs +++ b/Source/Editor/Windows/ContentWindow.ContextMenu.cs @@ -76,6 +76,15 @@ namespace FlaxEditor.Windows }); cm.AddButton(Utilities.Constants.ShowInExplorer, () => FileSystem.ShowFileExplorer(System.IO.Path.GetDirectoryName(item.Path))); + + if (!String.IsNullOrEmpty(Editor.Instance.Windows.ContentWin._itemsSearchBox.Text)) + { + cm.AddButton("Show in Content Panel", () => + { + Editor.Instance.Windows.ContentWin.ClearItemsSearch(); + Editor.Instance.Windows.ContentWin.Select(item); + }); + } if (item.HasDefaultThumbnail == false) {