godot
godot copied to clipboard
Autoload UI makes it seem like you can only use scripts
Tested versions
- Reproducible in: v4.4.1.stable.official [49a5bc7b6]
System information
Godot v4.4.1.stable - Windows 10 (build 19045) - Single-window, 2 monitors - OpenGL 3 (Compatibility) - AMD Radeon (TM) R9 200 Series (Advanced Micro Devices, Inc.; 27.20.1034.6) - AMD Ryzen 7 5800X 8-Core Processor (16 threads)
Issue description
This is a UI/UX issue as opposed to a functionality issue. I recently learned when looking for how I could add export variables to an Autoload (singleton) that you can use scenes as singletons in addition to scripts, which allows for setting the export variables in the scene.
It is not only unclear from the current autoload UI that this is possible, but the "Add" button only allows adding scripts. To add a scene as an Autoload, you must first create the scene separately, and then input its path (or use the path selection button).
The only hint in the UI that this is possible is the fact that when clicking the folder selection button, it lists .tscn and related as possible extensions (also for some reason a ton of other extension which don't seem like they should be there). The docs on Autoload mention it can be a script or scene, but the UI explicitly only says script.
It's very frustrating that I didn't realize this was possible until I was searching for a specific problem that required it, and I think it should be made very clear it can be a scene, as well as give that option using the "Add" button. I only ever use "Add" for the Autoloads, so would never have even seen that *.tscn is a possible file selection.
Steps to reproduce
Open "Project Settings", go to "Autoload" tab. The setting for "Path" explicitly says "Set path or press "Add" to create a script", which to me implies you can only set the path to a script. Furthermore, when pressing "Add", the only option is to add a script, not a scene.
I believe it should be called out explicitly in the Path entry it can be a scene (something like "Script or Scene: Set path or press "Add" to create new", which also ensures those with smaller screens will still see the "Script or Scene" part at the beginning). Then when pressing "Add" it should give 2 options in a drop-down, one for "Script" and one for "Scene".
Minimal reproduction project (MRP)
N/A