Godot Version
4.4
Question
Hello, simple formatting question.
Godot is throwing the error: “Unexpected “Indent” in class body”
and I’m not sure how to format this so that Godot’s happy with it.
I’m following Brackey’s coding tutorial as a reference and the for the setter and its about a year old so I’m not sure if his formatting is out of date or if I’m just doing something wrong. the GD documentation also shows something similar to this. Any help would be appreciated. Thanks!
code:
var ID: int = 0
set(newID):
ID = clamp(newID, 0, dictScript.size())