I have an exported String var called color. I want to specify the color with a string in the editor. If the var is "red", I load a red texture into my TextureProgress. Or "blue" for my blue texture, etc.
I am able to see the exported var in the editor and enter the string. And I can set the texture in ready(), but for some reason, my if test on the exported var color is failing. The code is very simple:
export var color:String = ""
if color == "blue":
tx = load("res://blueBar.png")
If I leave the if test out, then the texture gets set, but not with the if test.