Godot Version
4.0
Question
I have a textureRect that is supposed to change it’s position when I use a dropdown menu
how do I change the position of a control object with anchor presets in gdscript.
4.0
I have a textureRect that is supposed to change it’s position when I use a dropdown menu
how do I change the position of a control object with anchor presets in gdscript.
You can change the Control.position within your code.
Is this what you need?
do you mean setting the position to an anchor preset?
No, I meant just adjust position
, but maybe I misunderstood your problem.
If you want to use the anchors presets, then you can use Control.set_anchors_preset()
Is this what you need?