Skip to main content

scene_model

Function scene_model 

Source
pub fn scene_model<'db>(db: &'db dyn Db, file: FileText) -> Arc<SceneModel>
Expand description

The parsed SceneModel for file (M1) — memoized; recomputes only when the file text changes. A non-scene file (a .gd, or no res:// path) yields an empty model (so the query is total). The pure gdscript_scene::parse_scene is the cache body; this just wraps + gates it.