-
So basically I am trying to search for any tags “Name” and get there component type ‘TextMeshProUGUI’ . text field and replace a word in the text with a different word. I need this throughout the game, so when I have a text for example “‘Name’ went to the shop”. It replaces ‘Name’ with the user’s name.
-
I can find the tags, but replacing each text ‘name’ with the user’s name is where I am having trouble.
Example code:
- I know I am definitely missing something but I am not sure. Any help is much appreciated.
Thanks in advance!