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

Method GetAsset

Source/Engine/Content/Content.cpp:766–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766Asset* Content::GetAsset(const StringView& outputPath)
767{
768 if (outputPath.IsEmpty())
769 return nullptr;
770 PROFILE_CPU();
771 ScopeLock lock(AssetsLocker);
772 for (auto i = Assets.Begin(); i.IsNotEnd(); ++i)
773 {
774 if (i->Value->GetPath() == outputPath)
775 {
776 return i->Value;
777 }
778 }
779 return nullptr;
780}
781
782Asset* Content::GetAsset(const Guid& id)
783{

Callers 7

DrawTextMethod · 0.80
AddNewEntryMethod · 0.80
CreateFontMethod · 0.80
AssetItemClass · 0.80
ReloadMethod · 0.80
UpdateMethod · 0.80
SaveToOriginalMethod · 0.80

Calls 7

LockMethod · 0.80
UnlockMethod · 0.80
IsEmptyMethod · 0.45
BeginMethod · 0.45
IsNotEndMethod · 0.45
GetPathMethod · 0.45
TryGetMethod · 0.45

Tested by

no test coverage detected