15 lines
355 B
GDScript
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
|