-
-
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
Overhaul Project Settings page #10282
base: master
Are you sure you want to change the base?
Conversation
- Add screenshots - Document reading and writing settings - Document manually editing project.godot - Note that most settings are changed in different classes at runtime
.. code-tab:: gdscript GDScript | ||
|
||
ProjectSettings.set_setting("application/run/max_fps", 60) | ||
ProjectSettings.set_setting("display/window/size/mode", DisplayServer.WINDOW_MODE_WINDOWED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the set of example project settings used throughout the page, I picked these two because:
- I know them reasonably well
- They both need runtime duplicates, in different classes
- They have different types (int and enum) which is mildly instructive especially for the C# examples
- They are reasonably common
I'm open to suggestions for alternate project settings to use as examples. We can also add a third example if there is a good string example to use.
:ref:`RenderingServer <class_RenderingServer>`, | ||
:ref:`Viewport <class_Viewport>`, or :ref:`Window <class_Window>` classes. In the | ||
:ref:`ProjectSettings <class_ProjectSettings>` class reference, settings | ||
links to their equivalent runtime property or method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was originally "each project setting links to its runtime equivalent" but that's not true until #9944 is done...
Closes #10234.
project.godot
.This page is still a bit barebones for my taste, and it doesn't yet document project settings overrides. That's work for future PRs.