-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document conversion from res:// or user:// to global system paths (ProjectSettings.globalize_path) #4409
Comments
There's no For func _ready():
print(ProjectSettings.globalize_path("res://"))
print(ProjectSettings.globalize_path("user://"))
I'll move this to godot-docs as if you couldn't find the information in the docs, then the docs should likely be improved. |
Ah I guess I was confused with some different path then. But yes, I couldn't find it in the docs (and neither could some other people), so docs could use some improvement 😅 Thanks for the pointer, that will do! |
Reopening per godotengine/godot#43922 (comment). |
Whoops, why does it do this. |
This closes godotengine/godot-docs#4409. (cherry picked from commit f415db5)
Moved by @akien-mga from engine repository, as it's not a bug but a sign of incomplete documentation.
There should be documentation added to https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html about this (both
globalize_path
andlocalize_path
).The documentation for the actual methods in ProjectSettings could also use some extra information (doesn't mention
user://
, don't give a clear idea of what the result could be). https://docs.godotengine.org/en/stable/classes/class_projectsettings.html#class-projectsettings-method-globalize-pathGodot version: 3.2.3 from Alpine Linux repositories
OS/device including version: Alpine Linux edge
Issue description:
I'm messing around with the C#/Mono bindings and I'm currently using a library that requires me to pass it an absolute path. However, it seems there is currently no way to convert a Godot path (for example
cache://
oruser://
) to real paths so non-Godot scripts can work with it. I've seen no way to do it in the documentation and asking around on the Godot Matrix channel indicated it's just not possible.I expected the string GetBaseDir() function to be able to do it, but it still just returns
cache://
rather than the full resolved path.The text was updated successfully, but these errors were encountered: