- Dialogue > Conversations > Title > Plus
- Dialogue > Conversations > Title > Minus
1. If I press the Plus button in the UI, I want the dialogue to be activated.
2. If you press the minus button in the UI, it stops what was in front of the dialogue and wants the dialogue to appear.
I want to keep the conversation active and inactive each time the plus or minus button is pressed.
Is there a function to load a conversation with a script and disable it again?
Contact conversation extension
Re: Contact conversation extension
I don't understand. Are you asking about an editor feature? Or a runtime feature?
If you want to start a conversation from a script, use DialogueManager.StartConversation().
If you want to save the state of the conversation and then stop it, check DialogueManager.currentConversationState to record the current position somewhere. Then call DialogueManager.StopConversation() to stop the conversation.
If you want to start a conversation from a script, use DialogueManager.StartConversation().
If you want to save the state of the conversation and then stop it, check DialogueManager.currentConversationState to record the current position somewhere. Then call DialogueManager.StopConversation() to stop the conversation.
Re: Contact conversation extension
There is an Ambassador Hello in Conversations.
Clicking NPC in the UI outputs Hello.
If you click the UI again, the dialogue does not appear.
(Last Check: It becomes True.)
I want to keep the same dialogue exposed whenever I click on it.
Clicking NPC in the UI outputs Hello.
If you click the UI again, the dialogue does not appear.
(Last Check: It becomes True.)
I want to keep the same dialogue exposed whenever I click on it.
Re: Contact conversation extension
Hi,
Are there any errors or warnings in the Console window?
Can you send an example to tony (at) pixelcrushers.com?
Are there any errors or warnings in the Console window?
Can you send an example to tony (at) pixelcrushers.com?
Re: Contact conversation extension
1. Turn on the object to start a conversation
2. If the object is turned OFF and then turned ON again, no conversation is displayed.
2. If the object is turned OFF and then turned ON again, no conversation is displayed.
- Attachments
-
- 1.png (117.12 KiB) Viewed 698 times
Re: Contact conversation extension
Change the Dialogue System Trigger to OnEnable.
OnStart is only called once, when the component first starts in the scene. OnEnable is called whenever the component is enabled (or disabled and then re-enabled).
OnStart is only called once, when the component first starts in the scene. OnEnable is called whenever the component is enabled (or disabled and then re-enabled).
Re: Contact conversation extension
Thank you!
Re: Contact conversation extension
Glad I could help!