Ok, I’m even more lost now.
I understand what you’re saying, but I used the code you’re providing and nothing happen.
So I guess I haven’t put it in the right place, the code is in the root object of my scene, which is a Node3D.
is called every frame.
0 reads as false
where numbers greater then 0 read as true.
so NOTIFICATION_WM_SIZE_CHANGED returns 1008
a number greater then 0, so it’s the same as true
if true:
will always be run
so print(“test”) gets run every time _process gets run that’s every frame.
func _notification(what: int) → void:
is like process it’s something called by godot, but not on every frame but when something happens. so if the WM sized changed then godot would do run _notification(1008)
func _notification(what: int) -> void:
if what == NOTIFICATION_WM_SIZE_CHANGED: #1008 == 1008
print("test") #the thing you want to do when NOTIFICATION_WM_SIZE_CHANGED happens.
That was the missing piece !
I was on the right track and almost had the right line of code to link the signal, but I’m still struggling a bit with the syntax.