I tried creating a filedialog and loading a .glb file, but it gave me an error.
Can godot 3.5 load .glb file from script?
- Best Answerset by newmodels
Importing functionality is part of the editor/tools build not the export templates/game runtime afaik.
I was able to find a addon for loading glb files at runtime.
a month later
- Edited
This is core in 4.0.
Click to reveal Click to hide
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)