How to modify parts of text according to the player's gender?
Posted: Mon Aug 22, 2022 6:42 am
I guess this doubt has already been solved in another thread but I have not found it.
For our games we usually use a code similar to this: [Gender: he, she]. If the gender of the player is male then "he" appears, otherwise "she" appears. This allows us to use the same string for both genders.
Is it possible to do something similar using Dialogue System?
I have tried to call to an own function that modifies the text to show in StardardUISubtittlePanel.SetSubtitleTextContent but for some reason that I don't know, I cannot call to our code from the scripts of your asset.
Thanks!
For our games we usually use a code similar to this: [Gender: he, she]. If the gender of the player is male then "he" appears, otherwise "she" appears. This allows us to use the same string for both genders.
Is it possible to do something similar using Dialogue System?
I have tried to call to an own function that modifies the text to show in StardardUISubtittlePanel.SetSubtitleTextContent but for some reason that I don't know, I cannot call to our code from the scripts of your asset.
Thanks!