Is it possible to call a variable (i.e. int) from a text variable ?
Hi everyone, I have a TextAsset variable in order to change all my texts according to the selected language. This works great. Is it possible to call a variable from the textasset ? For example: A/ Debug.Log($"HighScore: {MyHighScoreVariable}"); prints "Highscore: 1000"
B/ I tried creating a TextAsset with - HighScore: {MyHighScoreVariable} - written in it but at this point Debug.Log($"MyTextAssetVariable"); prints "HighScore: {MyHighScoreVariable}"
Which makes sense. But i'd love it to work like A/
I hope i made myself clear enough... Do you have any suggestions on how to deal with that ? Thank you very much!
This would make it easier for me to have long texts in one textAsset rather than a lot of small textassets: The higscore is {HS} and the lowest score is {LS}. The average score is {AS}. Then I just have to make a new textasset in another language but I could keep the variables in place. Il punteggio più alto è {HS} e quello più basso è {LS}. Il punteggio medio è {AS}.