diff --git a/Source/Editor/Content/Items/AssetItem.cs b/Source/Editor/Content/Items/AssetItem.cs index 6697ed27c..a8303b1d4 100644 --- a/Source/Editor/Content/Items/AssetItem.cs +++ b/Source/Editor/Content/Items/AssetItem.cs @@ -82,7 +82,7 @@ namespace FlaxEditor.Content { sb.Append("Type: ").Append(TypeName).AppendLine(); sb.Append("Size: ").Append(Utilities.Utils.FormatBytesCount((int)new FileInfo(Path).Length)).AppendLine(); - sb.Append("Path: ").Append(Path).AppendLine(); + sb.Append("Path: ").Append(FlaxEditor.Utilities.Utils.GetAssetNamePathWithExt(Path)).AppendLine(); } /// diff --git a/Source/Editor/Content/Items/ContentItem.cs b/Source/Editor/Content/Items/ContentItem.cs index 284f3f1b3..1e0a2bad0 100644 --- a/Source/Editor/Content/Items/ContentItem.cs +++ b/Source/Editor/Content/Items/ContentItem.cs @@ -357,6 +357,8 @@ namespace FlaxEditor.Content /// public virtual void UpdateTooltipText() { + Editor.Log(FlaxEditor.Utilities.Utils.GetAssetNamePath(Path)); + TooltipText = "Path: " + Path; } diff --git a/Source/Editor/Utilities/Utils.cs b/Source/Editor/Utilities/Utils.cs index ade084431..21e5fc0da 100644 --- a/Source/Editor/Utilities/Utils.cs +++ b/Source/Editor/Utilities/Utils.cs @@ -1018,15 +1018,28 @@ namespace FlaxEditor.Utilities } /// - /// Gets the asset name relative to the project root folder (without asset file extension) + /// Gets the asset name relative to the project root folder (with asset file extension) /// /// The asset path. /// The processed name path. - public static string GetAssetNamePath(string path) + /// + public static string GetAssetNamePathWithExt(string path) { var projectFolder = Globals.ProjectFolder; if (path.StartsWith(projectFolder)) path = path.Substring(projectFolder.Length + 1); + return path; + } + + /// + /// Gets the asset name relative to the project root folder (without asset file extension) + /// + /// The asset path. + /// The processed name path. + /// + public static string GetAssetNamePath(string path) + { + path = GetAssetNamePathWithExt(path); return StringUtils.GetPathWithoutExtension(path); }