t... a := b; Really,。
the : is used to infer the data type of variable a based on the value of variable b. This is used in conjunction with Godot’s support for static typing. More details here: Godot Engine documentation GDScript style guide This style guide lists conventions to write elegant GDScript. The goal is to encourage writing clean, readable code and promote consistency across projects, and tutorials. Hopefully, Reply From: jgodfrey a = b Simply assigns the value of b to the variable a. a := b Also assigns the value of b to the variable a. In this case, the semi-colon is optional. It’s useful to 1) put a set of independent commands on a single line in a source file or 2) if you’re used to a language that requires the use of a semi-colon。
discussions, and don’t want to be bothered to not use it when coding in gdscript , this is the same as the previous example. Many languages use a semi-colon as an end of command indicator. In gdscript。
