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

Method GetAllByTypeName

Source/Engine/Content/Cache/AssetsCache.cpp:347–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void AssetsCache::GetAllByTypeName(const StringView& typeName, Array<Guid>& result) const
348{
349 PROFILE_CPU();
350 ASSETS_CACHE_LOCK();
351 for (auto i = _registry.Begin(); i.IsNotEnd(); ++i)
352 {
353 if (i->Value.Info.TypeName == typeName)
354 result.Add(i->Key);
355 }
356}
357
358#if ASSETS_CACHE_EDITABLE
359

Callers 2

GetAllAssetsByTypeMethod · 0.80
ApplyAllMethod · 0.80

Calls 3

BeginMethod · 0.45
IsNotEndMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected