Untitled
unknown
python
a year ago
304 B
10
Indexable
Never
extends Control func _ready(): var code = """extends Control\nstatic func test():\n\tprint(2 * 3)""" the_eval(code) func the_eval(script_code:String): var compiled_script = GDScript.new() compiled_script.set_source_code(script_code) compiled_script.reload() compiled_script.call("test")