FAbrowser/scripts/AutoAspectRatio.gd
2024-07-22 11:06:25 -04:00

15 lines
355 B
GDScript

extends AspectRatioContainer
class_name AutoAspectRatio
# this detect child image texture and changes aspect ratio to match it
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass