Facts about GDScript
- 06
Method calls in GDScript use snake_case naming convention by default, whereas properties accessed as getters and setters automatically convert to camelCase when interfacing with C++ core classes in Godot 4.0.
- 05
Godot's GDScript allows developers to define custom classes using the class_name keyword at the top of a script file, enabling global accessibility without requiring manual registration since version 3.1 in March 2019.
- 04
Godot's GDScript supports optional static typing through type hints while remaining dynamically typed by default, allowing developers to mix both paradigms within the same codebase.
- 03
Between 2014 and 2021, GDScript's reference counting garbage collector automatically freed unused objects without requiring manual memory management or pauses from stop-the-world collection cycles.
- 02
Typed variables in GDScript use a colon syntax like player_speed: int = 10, enabling static type checking within Godot's dynamic engine.
- 01
Godot's GDScript language achieved syntax similar to Python starting with version 3.0 released in January 2018.