Add a project setting to automatically add Editor's WorldEnvironment, DirectionalLight3D, and/or Camera3D to a 3D scene when running project with Run Current Scene/Run Specific Scene #98328
+144
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes godotengine/godot-proposals#6735
Closes godotengine/godot-proposals#5801
Closes godotengine/godot-proposals#5800
Closes godotengine/godot-proposals#10144 (maybe)
Closes godotengine/godot-proposals#7992 (maybe)
Fixes #95804
This commit adds a Project Setting (ENABLED BY DEFAULT) that when running the project with Run Current Scene or Run Specific Scene, adds the preview WorldEnvironment, DirectionalLight3D and/or Camera3D nodes from the Editor into the running game. This will NOT add any preview nodes if they already exist in the scene tree before running. This does NOT affect running a game normally.
I tried to adapt this the best I could to the discussion in godotengine/godot-proposals#5800, but am up to modify it in any way I should.
Some notes:
Screen.Recording.2024-10-18.214654.mp4
Screen.Recording.2024-10-18.214034.mp4