Hi, I'm trying to make a dynamic color texts on my game but Dyalogue system keeps overriding text colors.
How can I disable this?
I'm changing color property from my NPC Subtitle Line Text property but in a milisecond Dyalogue System overrides it.
Thanks in advance.
Disabling Dialogue System Text color overrides
Re: Disabling Dialogue System Text color overrides
Hi,
How are you changing the color?
Can you use [em] tags or rich text codes? For example:
How are you changing the color?
Can you use [em] tags or rich text codes? For example:
- Dialogue Text: "<color=red>This is red text.</color>"
Re: Disabling Dialogue System Text color overrides
I'm changing the Text component references values as follows:
It seems to be overrited each frame by the dialogue system itself, since I have no other style changes.
Edit: I can't change the text itself to add tags since it'd be counterporductive.
Code: Select all
reference = GetComponent<Text>();
reference.color = overrideColor;
reference.font = overrideFont;
reference.fontSize = overrideSize;
Edit: I can't change the text itself to add tags since it'd be counterporductive.
Re: Disabling Dialogue System Text color overrides
Nevermind, I created a new class that inhertis from "UnityUIDialogueUI" and overrided the ShowDialogue Function so it overrides the dialogue style too.
That seems to have fixed it
Thanks!
That seems to have fixed it
Thanks!