- Home /
Possible to edit the text markdown to call functions?
Hi, I'm having trouble searching for what I want as I'm not hugely familiar with the terminology.
I'm working on an adventure game which will feature a lot of dialogue using the textmeshpro UI objects and canvas. I have learned that I can edit the appearance of the text in-game by using some basic html-like markdown: < color=green>sample text< /color>, to make it green for example.
However I was wondering if it was possible to access where these functions are scripted and add in my own, so that the text field might speak directly to a script. For instance, if the text field shows: < !shock> then instead of displaying this, it would run the Shock() function on a specified script.
Thanks
Your answer
Follow this Question
Related Questions
Text fields where text will scale along with resolution. 1 Answer
Get value of clicked line of text field 3 Answers
Why does unity expect a file when I try to put text on a mesh? 1 Answer
Unity Editor Textfield appearing in the center 1 Answer
How do I change a TextMesh's Offset Z value in JavaScript? 1 Answer