How do I programmatically set the position for RichTextLabel?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bigfatal

Hi.
I’m trying to create a text l as below on the fly and set its position. I’m trying to use set_pos() which is on its ancestor but get an invalid function error.

Can u not call ancestor functions? Is there another / better way to do this?

Theme

:bust_in_silhouette: Reply From: Paar

Hi. From Godot 3.0 you can set class members. Try RichTextLabel.rect_position (inherited from Control) which is the coordinate of the top left corner of the bounding box.