1
0
forked from joey/godottest
Joey Eamigh 9989fab018
addons?
2025-10-10 14:07:23 -04:00

14 lines
358 B
GDScript

extends Control
@onready var trect:TextureRect = $TextureRect
var _module:PankuModule
var expr:String
func _physics_process(delta: float) -> void:
if Engine.get_physics_frames() % 10 != 1:
return
var result = _module.core.gd_exprenv.execute(expr)["result"]
if result is Texture2D:
trect.texture = ImageTexture.create_from_image(result.get_image())