Godot Version
v4.6.stable.official [89cea1439]
Question
I have a label that I want to anchor to the top right, but it works only with the second method. Am I missing something or is it a bug?
extends Label
func _enter_tree() -> void:
text = "TEST"
# Does not work
set_anchors_preset(Control.PRESET_TOP_RIGHT)
# Works
#set_anchors_and_offsets_preset(Control.PRESET_TOP_RIGHT, Control.PRESET_MODE_KEEP_WIDTH, 0)
The result:
and remote scene tree shows the correct preset:
When I change the anchors preset at runtime via inspector to something else and back to Top Right I get the expected result:


