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.

Importing functionality is part of the editor/tools build not the export templates/game runtime afaik.

    a month later

    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)