Manipulating hbox inside hbox container

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

Having hbox2 inside hbox1 which are HBoxContainer.

Having TextureRect s inside hbox2.

How to manipulate hbox2’s size?

Tried:

  1. Changing min_size on hbox2 + enabled extend on TextureRect. Result: It temporarily changes size just in editor, but when i click, play game, it backs to which i have started.