Skip to main content

save_scene_dispatch

Function save_scene_dispatch 

Source
pub fn save_scene_dispatch(
    project_vfs: Option<&Arc<Mutex<ProjectVfs>>>,
    world: &GameWorld,
    path_str: &str,
) -> bool
Expand description

Save dispatch: routes through the project VFS when the target path lives under <project>/assets/, falls back to direct std::fs for arbitrary out-of-project Save-As destinations. Defaults to the EditorInterchange strategy. Returns whether the scene reached disk. Failures are logged by the write paths themselves; the flag lets a caller react instead of assuming success.