Skip to main content

save_scene_in_project

Function save_scene_in_project 

Source
pub fn save_scene_in_project(
    pvfs: &mut ProjectVfs,
    world: &GameWorld,
    rel_path: &Path,
) -> bool
Expand description

Serializes the current world to a .kscene file at rel_path (relative to the project’s assets/ root) via the project’s AssetService. Re- indexes on success so the new scene is immediately resolvable by UUID.

Default callers should use save_scene_in_project which selects EditorInterchange (Recipe / bincode). Use save_scene_in_project_with_goal to pick a different strategy (HumanReadableDebug for RON export, FastestLoad for archetype).