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..
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)
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 patreon.com!
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; ORKGameHandler.Instance().Console.AddLine(LogText, myGameManager.instance.myLog);"
Sorry for my imprecise question, and thanks for your quick response.
<.color=#FF0000 >blablabla< /color.>
Edit: (remove the periods, this forum tries to read it as a color tag too)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
"myGameManager.instance.notificationText.color = Color.red;
ORKGameHandler.Instance().Console.AddLine(LogText, myGameManager.instance.myLog);"
Sorry for my imprecise question, and thanks for your quick response.