Dynamically exporting variables with GDScript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Footurist

Is something like this possible?

extends Node2D

onready var count = 0

func _process(delta):
	count += 1
	if count == 120:
		export (float) test_var = 0

But if you export a variable while the games is running, you won’t be able to edit it. What would you benefit from doing this?

Nyenye | 2018-02-27 12:28

Yeah, the ridiculous thought was very quickly abandoned, lol. Thanks anyways.

Footurist | 2018-02-27 16:28

But we can use tool keyword.

dragora | 2018-04-30 09:40