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

Method loadScene

Source/Engine/Level/Level.cpp:979–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979SceneResult LevelImpl::loadScene(SceneLoader& loader, JsonAsset* sceneAsset, float* timeBudget)
980{
981 // Keep reference to the asset (prevent unloading during action)
982 AssetReference<JsonAsset> ref = sceneAsset;
983 if (sceneAsset == nullptr || sceneAsset->WaitForLoaded())
984 {
985 LOG(Error, "Cannot load scene asset.");
986 return SceneResult::Failed;
987 }
988
989 return loadScene(loader, *sceneAsset->Data, sceneAsset->DataEngineBuild, nullptr, sceneAsset->GetPath(), timeBudget);
990}
991
992SceneResult LevelImpl::loadScene(SceneLoader& loader, const BytesContainer& sceneData, Scene** outScene, float* timeBudget)
993{

Callers

nothing calls this directly

Calls 15

JsonParseExceptionClass · 0.85
WaitForLoadedMethod · 0.80
GetParseErrorMethod · 0.80
FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetIntFunction · 0.50
ClearFunction · 0.50
GetPathMethod · 0.45
IsInvalidMethod · 0.45
ParseMethod · 0.45
LengthMethod · 0.45
HasParseErrorMethod · 0.45

Tested by

no test coverage detected