Files
tgcc/core/photo_mode/photo.gd
2026-04-16 11:01:04 +02:00

12 lines
229 B
GDScript

extends Control
class_name Photo
@onready var texture_rect: TextureRect = $%PhotoTexture
func setup(texture: Texture) -> void:
if texture:
if !texture_rect:
texture_rect = $%PhotoTexture
texture_rect.texture = texture