Connect the file_selected signal of the FileDialog to the MeshInstance
#MeshInstance.gd
func _on_file_selected(path):
var res = load(path)
if res is Mesh:
set_mesh(res)
I tried what you said but it doesn’t work. I want to open an obj file. So replace the “mesh” with the selected “obj” file. When I do as you said, it does not give an error, but “obj” does not open.