Add Content.GetAllAssets to get all asset ids in project

This commit is contained in:
Wojtek Figat
2021-10-08 15:31:13 +02:00
parent 78e093245d
commit 058e23f3ee
4 changed files with 26 additions and 2 deletions

View File

@@ -322,6 +322,13 @@ bool Content::GetAssetInfo(const StringView& path, AssetInfo& info)
#endif
}
Array<Guid> Content::GetAllAssets()
{
Array<Guid> result;
Cache.GetAll(result);
return result;
}
Array<Guid> Content::GetAllAssetsByType(const MClass* type)
{
Array<Guid> result;