I tried creating a filedialog and loading a .glb file, but it gave me an error.
Importing functionality is part of the editor/tools build not the export templates/game runtime afaik.
Megalomaniak
I was able to find a addon for loading glb files at runtime.
https://github.com/V-Sekai/godot-gltf-module/tree/gdnative
This is core in 4.0.
example:
var state := GLTFState.new() var document := GLTFDocument.new() document.append_from_file("/path/to/file.glb", state) var scene : Node = document.generate_scene(state) add_child(scene)