OSSingleton.getUserDataDir

Returns the absolute directory path where user data is written (user://). On Linux, this is ~/.local/share/godot/app_userdata/$(D project_name), or ~/.local/share/$(D custom_name) if use_custom_user_dir is set. On macOS, this is ~/Library/Application Support/Godot/app_userdata/$(D project_name), or ~/Library/Application Support/$(D custom_name) if use_custom_user_dir is set. On Windows, this is %APPDATA%\Godot\app_userdata\$(D project_name), or %APPDATA%\$(D custom_name) if use_custom_user_dir is set. %APPDATA% expands to %USERPROFILE%\AppData\Roaming. If the project name is empty, user:// falls back to res://.

struct OSSingleton
@nogc nothrow const
String
getUserDataDir
()

Meta