How to let the user edit a path at run time like I can edit in the editor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sinowa-Programming

I want to know if I have to code the system myself or if there is a easy little to no code solution.

What do you mean by “path”? You should be more specific. If you mean the path to a scene, the “res://” directory is locked during run-time and cannot be edited.

exuin | 2021-01-23 21:20

:bust_in_silhouette: Reply From: Lopy

You can have your user type arbitrary text in a LineEdit, which are really easy to use. For a path in the users filesystem (not res:// once exported) you can use a FileDialog. They are a bit more annoying, as they have a lot of fields you may wanna fill in, but code is pretty simple.
Lastly, if you want your user to choose a path inside res://, you can offer a few with an OptionButton, or simply a regular button for each choice.