Page 1 of 1
Cancel Key to be attached to a separate UI Button
Posted: Tue Jun 07, 2022 3:15 pm
by Greysize
Hi,
I'm currently developing a title for VR and I would need to have access to the Cancel function given by this input
DialogueManager.Instance.displaySettings.inputSettings.cancel.key;
But to be able to send it from a UI button and not a keypress.
Any Lead on how to wire that up?
Many Thanks
Re: Cancel Key to be attached to a separate UI Button
Posted: Tue Jun 07, 2022 3:56 pm
by Tony Li
Hi,
You could configure your UI Button to call DialogueManager.StopConversation() instead.
Re: Cancel Key to be attached to a separate UI Button
Posted: Wed Jun 08, 2022 10:36 am
by Greysize
Hi,
StopConversation() actually stop entirely the conversation I need to skip any Sequencecommand and move to the next response.
Many Thanks
Re: Cancel Key to be attached to a separate UI Button
Posted: Wed Jun 08, 2022 10:46 am
by Tony Li
You can set up your UI Button as a continue button on your subtitle panel. To see an example, open DemoScene1, set the Dialogue Manager's Subtitle Settings > Continue Button dropdown to Always, and play the scene. You will see that the subtitle panel shows a continue button that will skip ahead to the next response.
Re: Cancel Key to be attached to a separate UI Button
Posted: Wed Jun 08, 2022 11:56 am
by Greysize
Hi,
Yeah I was silly I forgot to add a script on the button
StandardUIContinueButtonFastForward
And also add a OnClick() Event leading to StandardUIContinueButtonFastForward>OnFastForward()
Many thanks Toni,
David
Re: Cancel Key to be attached to a separate UI Button
Posted: Wed Jun 08, 2022 1:16 pm
by Tony Li
Glad to help!