I create a String Constant, App.MyTestName = “Test Name 2014”
Then create a String Property called App.FooTestName and using the Inspector I set the Default to App.MyTestName
At runtime, I see ‘App.MyTestName’ instead of the expected ‘Test Name 2014’
I’ve noticed that when I set a Color Property, and use a Color Constant, it works fine, that is all I need to enter into the Default for the Color Property is App.SkyBlue.
Do I need to do something to defrefernce the String Constant like set the Default to #App.MyTestName?
I tried that but it didn’t work, I still got the literal value, not the Constant.
Set the property to #App.MyTestName. The “#” tells the IDE to substitute the value of the constant. Otherwise, you get the literal value that you typed in.
It works for me in 2014r2.1. You’re setting this in the inspector when you view a class instance where you’ve added the property to the Inspector Behavior so it shows up, right? You can’t do this directly in the default value of the property.