INNER CODE UNIT · C++

scene

oxylusengine/Oxylus · OxylusEditor/src/Editor.cpp:396

  auto* scene = focused_viewport->get_scene();

  if (!scene || scene->is_playing()) {
    return;
  }

  if (!scene->get_path().empty()) {
    submit_scene_save(scene, scene->get_path());
  } else {
    save_scene_as();
  }
}

auto Editor::sync_terrain_edits_asset(Scene& scene, const std::filesystem::path& scene_path) -> std::filesystem::path {
  ZoneScoped;

  if (scene.terrain == nullptr || !scene.terrain_entity || !scene.terrain_entity.has<TerrainComponent>()) {
    return {};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…