Add Content.GetAllAssets to get all asset ids in project
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user