Search found 18 matches

by HunterTom
Tue Feb 15, 2022 4:05 pm
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

Thank you very much! I used the coroutine and it worked, although I have to change yield return null; to yield return new WaitForSeconds(0.05f); BTW, I just noticed that I actually set my continue button game object to be not active the whole time (I just didn't want it to show up), but somehow the ...
by HunterTom
Mon Feb 14, 2022 9:57 pm
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

Thanks for your answer! I think I am almost there! Everything else has been working other than one final glitch. I used your code and wrapped it inside a function void ResumeDialogueContinueButton() { DialogueActor actor; var subtitle = DialogueManager.currentConversationState.subtitle; var subtitle...
by HunterTom
Mon Feb 14, 2022 3:55 pm
Forum: Dialogue System for Unity
Topic: Using DialogueSystemEvents
Replies: 3
Views: 422

Re: Using DialogueSystemEvents

Thank you!

By the way is it safe to call

Code: Select all

dialogueSystemEvents.conversationEvents.onConversationLineEnd.RemoveAllListeners();
? I am just a bit concerned if Dialogue System for Unity has some built-in listerners and if I call that it would destroy the whole system
by HunterTom
Mon Feb 14, 2022 1:41 pm
Forum: Dialogue System for Unity
Topic: Using DialogueSystemEvents
Replies: 3
Views: 422

Using DialogueSystemEvents

Hi, I want to some event that can be called whenever a new conversation node shows up. Is onConversationLine the right event? How can I subscribe my own C# function to that event using code? Can I do it in a class that doesn't inherit from Monobehavior? Here is my attempt public static event Dialogu...
by HunterTom
Mon Feb 14, 2022 3:55 am
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

Thank you for the suggestion! I think setting up two node might be a bit too much since I have hundreds of items to set up and that would double the work. Maybe setting it up in the sequencer is not the best way to do it. I then tried if (DialogueManager.isConversationActive) { DialogueManager.displ...
by HunterTom
Sun Feb 13, 2022 4:24 pm
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

Thank you for your answer! The sequence solution worked for what I described so far, but now I am having a new problem. In my design, the getItemUI will only appear for the first time I get the item. If it's not the first time, a pop up message will show up instead and the pop up message will disapp...
by HunterTom
Sun Feb 13, 2022 3:19 pm
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

How about I use a sequence in the conversation node that waits for a message? The message will get sent after I dismiss the getItemUI. I am understanding sequence correctly, the conversation node will not proceed as long as the sequence is waiting for the message, even if I am pressing continue butt...
by HunterTom
Sun Feb 13, 2022 4:04 am
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Re: Inserting a Canvas UI in the middle of a dialogue

Thank you for the reply! I am not writing my own canvas to display the image and text, instead of using the built-in alert. There are two issues I am having: 1. My own panel shows up without any problem, but the dialogue UI still exists. I am trying to hide it temporarily by setting the game object ...
by HunterTom
Thu Feb 10, 2022 3:57 am
Forum: Dialogue System for Unity
Topic: Inserting a Canvas UI in the middle of a dialogue
Replies: 13
Views: 1917

Inserting a Canvas UI in the middle of a dialogue

Hi, I want to add a feature that when the player gets an item (which is in the middle of a conversation), the dialogue UI would disappear and the canvas with an image of the item and some description text will show up. Then after the user clicks mouse or press a key (same action as the continue butt...
by HunterTom
Wed Jan 05, 2022 2:55 am
Forum: Dialogue System for Unity
Topic: Variables Not Reset Properly
Replies: 1
Views: 219

Variables Not Reset Properly

Hi, I am using SaveSystem.RestartGame("PrototypeEntry"); to restart the game. However, the variables in the dialogue database are not being reset properly. I still need to exit the game completely and open the build.exe to reset the variables. Am I doing anything wrong here? Thank you very...