Variable Typing

Static Typing

var my_int: int = 5
my_int = "Hello, GDScript!" # This will cause an error

Dynamic Typing

var my_variable = 10
my_variable = "Hello, GDScript!" # This is allowed
Comments