Changing Color of Notification Texts
Hello, a quick question: I use "ORKGameHandler.Instance().Console.AddLine(....) in my scripts to display my own texts in the console. Is there a way to change the color of the texts. I would like to show negative texts in red etc..
edited October 3
If you're using TextMeshPro for the text rendering, you should just be able to wrap the text string in a color tag and TMP should parse it automatically:
<.color=#FF0000 >blablabla< /color.>
Edit: (remove the periods, this forum tries to read it as a color tag too)
Post edited by Acissathar on
You can also add those text codes via the buttons above the text area while editing. There are a lot of options to also change text size, etc.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
If you're enjoying my products, updates and support, please consider supporting me on
Text codes are really powerful, I use them often. but actually wanted to change the color in C# for my custom notification before I send it to the console. Anyway, I have a small script on the Notification UI, that had a reference to the text. Now I can change the color and send it to the console:
"myGameManager.instance.notificationText.color = Color.red;
Sorry for my imprecise question, and thanks for your quick response.
It looks like you're new here. If you want to get involved, click one of these buttons!
Makinom Tips, Tricks & Tutorials
ORK Tips, Tricks & Tutorials
Having trouble setting up a simple teleport.
about HUD Status Value List
StatusValue combined Value
About the menu button input key
Spawn prefab and follow mouse cursor Raycast using schematics
Who's Online (1)
© 2015 Gaming is Love e.U.