Various improvements for Editor

This commit is contained in:
Wojtek Figat
2022-05-06 17:14:25 +02:00
parent 3766488114
commit 90906baae2
7 changed files with 49 additions and 36 deletions

View File

@@ -271,18 +271,7 @@ namespace FlaxEditor.Content
/// <summary>
/// Gets the asset name relative to the project root folder (without asset file extension)
/// </summary>
public string NamePath
{
get
{
string result = Path;
if (result.StartsWith(Globals.ProjectFolder))
{
result = result.Substring(Globals.ProjectFolder.Length + 1);
}
return StringUtils.GetPathWithoutExtension(result);
}
}
public string NamePath => FlaxEditor.Utilities.Utils.GetAssetNamePath(Path);
/// <summary>
/// Gets the default name of the content item thumbnail. Returns null if not used.