Guide to the Godot game engine/GDScript

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Guide to the Godot game engine


GDScript

Skip to bottom

GDScript uses dynamic typing (Variable type can change and type is not inferred on creation) with optional static typing.

Note:

Godot 4.x gives massive changes to GDScript compared to the 3.x line, including to the updates to the export keyword (which is renamed to @export in Godot 4.x). Another change is that static typing will be 40% - 70% faster at runtime.


Below are the basics of GDScript that you must know. If you've never used it before, even if you plan to only use C# with godot, you should learn these.

GDScript