Debian Codegraph @

modules/gdscript/tests/scripts/runtime/features/simple_setter_chain_call_setter.gd

raw
1 # https://github.com/godotengine/godot/issues/85952
2
3 var vec: Vector2 = Vector2.ZERO:
4 set(new_vec):
5 prints("setting vec from", vec, "to", new_vec)
6 if new_vec == Vector2(1, 1):
7 vec = new_vec
8
9 func test():
10 vec.x = 2
11 vec.y = 2
12
13 prints("vec is", vec)