godot var = this or this# code example
Example: godot var := x
Inferred types
In most cases you can let the compiler infer the type, using :=:
var health := 0 # The compiler will use the int type.
Inferred types
In most cases you can let the compiler infer the type, using :=:
var health := 0 # The compiler will use the int type.