From 90da04168339665291dda344544d90e53968e5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Mon, 11 Aug 2025 16:55:57 +0300 Subject: [PATCH] Show symlink target in the resource tooltip. --- editor/inspector/editor_resource_tooltip_plugins.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/inspector/editor_resource_tooltip_plugins.cpp b/editor/inspector/editor_resource_tooltip_plugins.cpp index 87c62f2e965..a60cae1120b 100644 --- a/editor/inspector/editor_resource_tooltip_plugins.cpp +++ b/editor/inspector/editor_resource_tooltip_plugins.cpp @@ -81,6 +81,12 @@ VBoxContainer *EditorResourceTooltipPlugin::make_default_tooltip(const String &p Label *label = memnew(Label(vformat(TTR("Type: %s"), type))); vb->add_child(label); } + + Ref da = DirAccess::create(DirAccess::ACCESS_RESOURCES); + if (da->is_link(p_resource_path)) { + Label *link = memnew(Label(vformat(TTR("Link to: %s"), da->read_link(p_resource_path)))); + vb->add_child(link); + } return vb; }