Add Content.GetEditorAssetPath

This commit is contained in:
Wojciech Figat
2022-08-08 11:48:16 +02:00
parent a4cdca80fc
commit 0eba11f1eb
3 changed files with 13 additions and 0 deletions

View File

@@ -70,6 +70,13 @@ public:
/// <returns>True if found any asset, otherwise false.</returns>
API_FUNCTION() static bool GetAssetInfo(const StringView& path, API_PARAM(Out) AssetInfo& info);
/// <summary>
/// Finds the asset path by id. In editor it returns the actual asset path, at runtime it returns the mapped asset path.
/// </summary>
/// <param name="id">The asset id.</param>
/// <returns>The asset path, or empty if failed to find.</returns>
API_FUNCTION() static String GetEditorAssetPath(const Guid& id);
/// <summary>
/// Finds all the asset IDs. Uses asset registry.
/// </summary>