I'm working on a simple application that shows a list of controls. When a new control gets added to the list I want to make it look like it grows vertically. I created a tween for rect_size.y but it doesn't work.
Tweening rect_size.x works just fine but when I try to make it grow/shrink vertically it doesn't do anything.
I assume it could be because the items get added to a VBoxContainer and the container somehow prevents changing the height of the items.
Is there anything I can do to make this work?
Here is the my tweening function, it gets called when the control enters the scene
func grow():
in_tween.interpolate_property(self, "rect_size:y", 0 , rect_size.y, 1.5, Tween.TRANS_LINEAR, Tween.EASE_OUT)
var end_color = Color(1.0, 1.0, 1.0, 1.0)
var start_color = Color(1.0, 1.0, 1.0, 0.0)
in_tween.interpolate_property(self, "modulate", start_color, end_color, 0.5, Tween.TRANS_LINEAR, Tween.EASE_IN)
if not in_tween.is_active():
in_tween.start()