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

Method LoadAsync

Source/Engine/Content/Content.cpp:691–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691Asset* Content::LoadAsync(const StringView& path, const MClass* type)
692{
693 CHECK_RETURN(type, nullptr);
694 const auto scriptingType = Scripting::FindScriptingType(type->GetFullName());
695 if (scriptingType)
696 return LoadAsync(path, scriptingType);
697 LOG(Error, "Failed to find asset type '{0}'.", String(type->GetFullName()));
698 return nullptr;
699}
700
701Asset* Content::LoadAsync(const StringView& path, const ScriptingTypeHandle& type)
702{

Callers 1

FindAssetMethod · 0.45

Calls 15

FindScriptingTypeFunction · 0.85
LoadAsyncFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80
GetIDMethod · 0.80
DeleteObjectMethod · 0.80
startLoadingMethod · 0.80
StringClass · 0.50
IsValidMethod · 0.45
TryGetMethod · 0.45
IsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected