The Shaggy Dev | 8 changes to GDScript in Godot 4 you'll want to know about @TheShaggyDev | Uploaded October 2022 | Updated October 2024, 3 hours ago.
Here are five things that are different in GDScript from Godot 3 to Godot 4, along with three new features that you may want to know about. Here's the changes we'll look at: the introduction of Callables, the "await" command, calling functions from a superclass, changing scenes, and annotations. Additionally, we'll look at a few new additions to typing variables in GDScript 2.
Text post and code snippets: shaggydev.com/2022/10/24/gdscript1-to-gdscript2
Doc links:
Callables: docs.godotengine.org/en/latest/classes/class_callable.html
Await: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#awaiting-for-signals
Annotations: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#annotations
Exports: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_exports.html
Here are five things that are different in GDScript from Godot 3 to Godot 4, along with three new features that you may want to know about. Here's the changes we'll look at: the introduction of Callables, the "await" command, calling functions from a superclass, changing scenes, and annotations. Additionally, we'll look at a few new additions to typing variables in GDScript 2.
Text post and code snippets: shaggydev.com/2022/10/24/gdscript1-to-gdscript2
Doc links:
Callables: docs.godotengine.org/en/latest/classes/class_callable.html
Await: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#awaiting-for-signals
Annotations: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#annotations
Exports: docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_exports.html