0 votes

If I use a filedialog I can convert "res://" to windows equivalent by setting the access to filesystem. Is there a way to do this in GDScript.

A secondary question would be if I can pull the Projects folder from Editor Settings using gdscript. I see EditorSettings in Editor but can't seem to find way of getting values from it.

in Engine by (204 points)

1 Answer

0 votes

Nevermind, I found my own answer:

var respath = ProjectSettings.globalize_path("res://")

Will convert it to OS dependent file path.

by (204 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.