challenge-editor/scene/tool/animation_container.gd
2024-09-18 12:00:44 +08:00

12 lines
275 B
GDScript

extends Container
class_name AnimationContainer
@export var animation_type:Tween.TransitionType=Tween.TRANS_LINEAR
@export var animation_time:float=0.2
@export var rect:Rect2=Rect2():
set(val):
for i in get_children():
if i is Control:
fit_child_in_rect(i,val)