Skip to main content

process_pending_prefab_spawn

Function process_pending_prefab_spawn 

Source
pub fn process_pending_prefab_spawn(
    project_vfs: Option<&Arc<Mutex<ProjectVfs>>>,
    world: &mut GameWorld,
    editor_state: &Arc<Mutex<EditorState>>,
)
Expand description

Drains [EditorState::pending_prefab_spawn] and instantiates the referenced .kprefab into the live world via [instantiate_subtree]. The forward-slash relative path resolves through the project’s VFS / AssetService.