Import files from computer via code

Godot Version

Newest version? I believe 4.2?

Question

Hi I’m pretty new to godot, but I’m wondering how I can allow the user to access files on their computer through programming.

What exactly do you mean by code? Theres a FileDialog-Node that lets you select files and directories from your filesystem

1 Like

Sorry, I just meant any way to import files when the program is run, not before it is run.

So the filedialog node just uses the files on the project right? I want something similar to that but instead uses the user’s computer files.

FileDialog uses the computers files. You have to set “Access” to “FileSystem”

Awesome, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.