Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var current_code:String
- onready var instance:Node
- func get_code()->void:
- current_code = instance.get_script().source_code
- func set_code()->void:
- instance.get_script().source_code = current_code
- instance.get_script.reload(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement