i found a tutorial on unity web https://docs.unity3d.com/Manual/StyledText.html but i dont know how to color string text for example : Hello %name% i want .... text red but name other collor
titulky.text = ("<size=20> <color=red>Ahoj</color>")+name+("<color=red>...</color> </size>") ;
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
I can't find a problem(uGui - Text blurry and not clean)
Check values of multiple gameobjects
Array cannot read Greek characters
Unexpected text appears using UI
Change UI Text in script