You can use Getters and Setters to automatically call functions when the value is get or set
Getters
Setters
get
set
var foo := 0: get: return foo set(value): foo = value $Label.text = str(foo)
Last updated 1 year ago