Godot Version
4.2.1
Question
Hi, I made a TouchScreenButton with a “RactangleShape” and the size x= 1800 and Y = 200. I set this properties in the AnimationPlayerNode.
For some reason the Y value is read by the engine as 20 not 200.
I also tried so set Y to 201 but it is always reading 200.
Only after some random actions in the AnimationPlayer it suddenly recognizes the correct value of 200.
To me it seems like a bug but I am glad to here what I am doing wrong.
I would say you should also set the size as the default value for the node AND create a RESET animation to also set it to that value. I wouldn’t rely on the animation player to set that value on initialization.
Animationplayers act like tools and these will directly change the properties of in real time in the editor. So if you don’t have a RESET animation ( also set to reset on save ) it will leave a property where it last was in the editor. Its not great but it is by design and not a bug.
1 Like
Thank you ,its all fine now!
1 Like