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

Method saveScene

Source/Engine/Level/Level.cpp:1452–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1450}
1451
1452bool LevelImpl::saveScene(Scene* scene)
1453{
1454#if USE_EDITOR
1455 const auto path = scene->GetPath();
1456 if (path.IsEmpty())
1457 {
1458 LOG(Error, "Missing scene path.");
1459 return true;
1460 }
1461
1462 return saveScene(scene, path);
1463#else
1464 LOG(Error, "Cannot save data to the cooked content.");
1465 return false;
1466#endif
1467}
1468
1469bool LevelImpl::saveScene(Scene* scene, const String& path)
1470{

Callers

nothing calls this directly

Calls 15

EnumHasNoneFlagsFunction · 0.85
GetAssetFunction · 0.85
GetIDMethod · 0.80
GuidMethod · 0.80
GetPathMethod · 0.45
IsEmptyMethod · 0.45
GetNameMethod · 0.45
GetSizeMethod · 0.45
GetStringMethod · 0.45
StopMethod · 0.45
ReloadMethod · 0.45
StartObjectMethod · 0.45

Tested by

no test coverage detected