Search found 73 matches

by fanaei
Fri Jul 14, 2023 12:37 pm
Forum: Dialogue System for Unity
Topic: Play animation on every conversation line
Replies: 1
Views: 87

Play animation on every conversation line

Hi
I wanted to know how can I have a fade animation every time that we change the conversation line and seeing the next text?
There is a "show" animation when we start conversation, but I want to fade just text, on changing texts. I hope you got what I mean
by fanaei
Mon Feb 10, 2020 9:23 am
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Thanks a million Tony. Finally it works! : )
by fanaei
Sun Feb 09, 2020 12:56 pm
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Yes. It doesn't show any error. I also checked the speaker by: Debug.Log(subtitle.speakerInfo.transform.name); It shows the name of NPC but the color doesn't change. I think if I be able to get the color before "OnConversatonLine" it will work. When I use below code, The Npc's color, gets ...
by fanaei
Sun Feb 09, 2020 12:46 pm
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

It works. But I can't have a different color for different NPCs. I tried this code, But it doesn't work when I try to get the color from Npc script: void OnConversationLine(Subtitle subtitle) { if (subtitle.speakerInfo.transform.GetComponent<NpcScript>()){ var tmp = (DialogueManager.dialogueUI as St...
by fanaei
Fri Feb 07, 2020 2:05 pm
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

The fading texts is okay now. But when I finish a dialogue and start the second dialogue, the NPC's color doesn't get its color and uses the NPC's color from previous dialogue!
by fanaei
Fri Feb 07, 2020 1:13 pm
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Tony, I have problem again!
I think the problem came from having one subtitle panel for both PC and NPC
I duplicated the panel. Now the colors are okay but the text doesn't fade out or gone when the text changes.
How can I solve this problem?
by fanaei
Wed Jan 29, 2020 10:24 am
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Yes Tony it works somehow now. Thank you :)
by fanaei
Wed Jan 29, 2020 10:06 am
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Your updated script only works on Player and changes the color for both PC and NPC to the same color. But if I use this below code that your wrote first on my NPC and set subtitle color for Player on Dialogue Actor component. The player uses the main ui color and NPC uses your first script color: va...
by fanaei
Wed Jan 29, 2020 9:23 am
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

I added your edited script to both Player and Npc, but texts of dialogues for both of them changes to Player's color and NPC texts gets the player color.
If I add the script only to NPC, it doesn't change the color at all.
If I add it only to player, it changes the color for both player and NPC
by fanaei
Wed Jan 29, 2020 9:05 am
Forum: Dialogue System for Unity
Topic: Changing subtitle color for new languages
Replies: 19
Views: 1602

Re: Changing subtitle color for new languages

Yes. I'm using Dialogue System's TextMeshProTypewriterEffect.
I tested your code but it changes color for both player and NPC. :(