How to Enable Strict Type Checking in Godot
Tags: godot, gdscript, gamedev, programming
Last Updated on Thu, 02 Jan 2025 14:01:43 GMT - Edit Page
These settings help enforce better coding practices by notifying you of untyped or unassigned variables during development:
- Open your Godot project.
- Navigate to Project > Project Settings in the top menu.
- In the Project Settings window, enable Advanced Settings by clicking the gear icon.
- Go to Debug > GDScript in the left-hand menu.
- Adjust the following settings to control the strictness of type checking:
- Untyped Declaration: Set to either
Warning
orError
.
- Untyped Declaration: Set to either
- (Optional) Explore other settings in the Debug > GDScript category to further customize script debugging behavior.
- Click Close to save your changes.