Make editor play mode transactional

This commit is contained in:
2026-04-29 04:33:30 +08:00
parent 595d39c4c3
commit a3a80dff8f
9 changed files with 444 additions and 4 deletions

View File

@@ -396,6 +396,12 @@ bool EditorSceneRuntime::SaveScene(const std::filesystem::path& scenePath) {
return m_backend != nullptr ? m_backend->GetActiveScene() : nullptr;
}
std::unique_ptr<EditorScenePlaySession> EditorSceneRuntime::BeginPlaySession() {
return m_backend != nullptr
? m_backend->BeginPlaySession()
: nullptr;
}
bool EditorSceneRuntime::RenameGameObject(
std::string_view itemId,
std::string_view newName) {