Hi there
I cant figure out how to mark a public string (the content of it), so that it will appear as bold in game?
gives me an error, and I do not want all of the text to be bold, so is there any workaround?
Thank you
Hi there
I cant figure out how to mark a public string (the content of it), so that it will appear as bold in game?
gives me an error, and I do not want all of the text to be bold, so is there any workaround?
Thank you
The Text object that the string gets applied to must accept RichText (toggle the option on in the inspector for the Text UI element).
Thanks, but that’s not what I meant.
In the code below you’ll see. I want to make “burrowedTimeInformation.spellName” into richText.
mouseOverText.text = burrowedTimeInformation.spellName + "\nCost: " + burrowedTimeInformation.spellCost
It is a public string from another script but when I write it like this:
burrowedTimeInformation.spellName
It gives med an error about invalid expression on the first < and the /.
Nevermind, I found out!
Since it’s a public string you can apply the in the inspector.
I’m actually not sure if it would work in my mouseover example above, but did something else instead that I liked more, but at least it works in the inspector