MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FindAssets

Function FindAssets

Source/Engine/Content/Content.cpp:455–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453#if USE_EDITOR
454
455bool FindAssets(const ProjectInfo* project, HashSet<const ProjectInfo*>& projects, const Guid& id, Array<String>& tmpCache, AssetInfo& info)
456{
457 if (projects.Contains(project))
458 return false;
459 projects.Add(project);
460 bool found = findAsset(id, project->ProjectFolderPath / TEXT("Content"), tmpCache, info);
461 for (const auto& reference : project->References)
462 {
463 if (reference.Project)
464 found |= FindAssets(reference.Project, projects, id, tmpCache, info);
465 }
466 return found;
467}
468
469#endif
470

Callers 3

GetAssetInfoMethod · 0.85
AssetSearchPopupMethod · 0.85
FindAssetsMethod · 0.85

Calls 3

findAssetFunction · 0.85
ContainsMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected