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

Method CreateVirtualAsset

Source/Engine/Content/Content.cpp:1140–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138}
1139
1140Asset* Content::CreateVirtualAsset(const MClass* type)
1141{
1142 CHECK_RETURN(type, nullptr);
1143 const auto scriptingType = Scripting::FindScriptingType(type->GetFullName());
1144 if (scriptingType)
1145 return CreateVirtualAsset(scriptingType);
1146 LOG(Error, "Failed to find asset type '{0}'.", String(type->GetFullName()));
1147 return nullptr;
1148}
1149
1150Asset* Content::CreateVirtualAsset(const ScriptingTypeHandle& type)
1151{

Callers

nothing calls this directly

Calls 15

FindScriptingTypeFunction · 0.85
CreateVirtualAssetFunction · 0.85
NewVirtualMethod · 0.80
LockMethod · 0.80
GetIDMethod · 0.80
UnlockMethod · 0.80
StringClass · 0.50
NewFunction · 0.50
GetTypeMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45
RegisterObjectMethod · 0.45

Tested by

no test coverage detected