I’ve noticed that whenever I build a component with an export variable and then set another variable equal to the export variable, the normal variable is always the export variable’s default value, even if I change it in the editor. For example, if I have a health component with these two lines:
@export var max_health = 5
var health = max_health
then even if I set max_health to something different in the editor, health is always set equal to five. I’ve come up with workarounds for this issue where it’s necessary, but is there a way to resolve it completely?