Exploring the Godot 4 Editor
Godot is a free open source game engine that was created by Juan Linietsky and Ariel Manzur in 2007. It was released under the MIT License in 2014. You can download Godot from https://godotengine.org/. The following is from the Press Kit on the website:
Godot uses a tree of nodes inside a scene. A scene can be instanced in many different scenes. Godot’s integrated language, GDScript, is a Python-like language that is very easy to learn.
Godot is written in C++, which you can use to edit the Godot Engine or contribute to the engine itself. Godot also officially...
Navigating in the new Godot 4 Editor
For this recipe, open up Godot 4 and follow along. To have a look at the process_mode property, select the new preview Sun and Environment dialogs and then select Inspector | Node | process_mode. We’ll then look at the three renderer options in Godot 4.
How to do it…
Let’s execute the following steps:
- Open a new project in Godot 4.
- In the Scene tab, click on 3D Scene.
- Click the three vertical dots on the viewport toolbar to the left of Transform. You can see them highlighted in a blue box in Figure 1.1.
- Click the Add Environment to Scene tab on the bottom right of the dropdown.
You can preview the Sun or Environment nodes when you import models, or you can add them to the scene.
Figure 1.1 – Edit Godot 4 Sun and Environment settings
- Click on World Environment under Node3d in the Scene tab.
- In Inspector, click on the Environment type and then click on Sky...
Exploring the new features in the Project Settings dialog
In this recipe, we will look at the Advanced Settings button in Project Settings, which opens all of the options available for all of the project settings listed. The Input Map Show Built-in Actions button opens all of the available user input actions that can be set for your game. The Shader Globals tab in Project Settings is for global uniforms.
How to do it…
To find the Project Settings Advanced Settings button, the Input Map Show Built-in Actions button, and the Shader Globals tab, execute the following steps:
- Open a new or any existing project in Godot 4.
- In the top-left menu, click Project, and then click Project Settings.
The default settings now only show the basic settings.
Figure 1.8 – Godot 4 Project Settings default settings
Figure 1.9 – Godot 4...
What’s new in the Editor Settings dialog
In this recipe, we will look at the differences in the Editors and Text Editors in Editor Settings between Godot 3.x and Godot 4.
How to do it…
To find the Editors and Text Editors in Editor Settings, execute the following steps:
- Open a new or any existing project in Godot 4.
- In the top-left menu, click Editor, and then click Editor Settings.
- On the left, where you see Interface, scroll down to Text Editor.
- Click Theme under Text Editor.
Figure 1.13 – Godot 4 Text Editor – Theme
The following screenshot shows what it looked like in Godot 3.x.
Figure 1.14 – Godot 3.x Text Editor – Highlighting
Notice that the Highlighting settings in Godot 3.x are now under Theme in Godot 4.
Figure 1.15 –...