Skip to main content

script_scene_attachments

Function script_scene_attachments 

Source
pub fn script_scene_attachments<'db>(
    db: &'db dyn Db,
    root: SourceRoot,
) -> Arc<FxHashMap<SmolStr, Vec<(FileId, NodeIdx)>>>
Expand description

Every scene that attaches the script at res_path(scene file, attach node) pairs in scan order. Single-scene scripts have one entry; the rare multi-scene script has several (the basis for $Path union typing, M2 §6.3 — type a path as the common base across all scenes). Same firewall as script_scene_index (keyed on the scene texts, backdates across .gd edits).