Texturerect rect_position() not working

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

I have one texturerect as child of zombie I want to move it up
I wrote


when I run the game it’s showing Invalid call. Nonexistent function ‘rect_position’ in base ‘TextureRect’.

When I select control in node window of texturect it’s saying all ui nodes inherit from control so it should be working

:bust_in_silhouette: Reply From: ramazan


zombiHealth.rect_position = Vector2(100, 100)

Note = 100 just examples