Page 1 of 2
Skip to Line End.
Posted: Mon Jun 17, 2019 5:32 pm
by PixelPete
The skip button doesn't show all dialogue(text) before skipping to the next dialogue.
I assume everyone wants the skip button to just instantly show all text then go to the next dialogue.
I dont want to skip dialogues just skip the typewriter effects for inpatient people.
How can this be done?
Re: Skip to Line End.
Posted: Mon Jun 17, 2019 6:13 pm
by Tony Li
Hi,
The included Standard Dialogue UI prefabs have continue buttons that skip to line end.
Please try out the Basic Standard Dialogue UI to see how it works. Its continue button's OnClick() event points to a method named OnFastForward on a script named StandardUIContinueButtonFastForward. If the typewriter is still typing, this method fast-forwards the text to the end. If the text is already at the end, then it skips to the next dialogue.
Configure your continue button similarly.
Re: Skip to Line End.
Posted: Mon Jun 17, 2019 6:42 pm
by PixelPete
Thanks
Re: Skip to Line End.
Posted: Mon Jun 17, 2019 7:10 pm
by Tony Li
Just wanted to add one thing: if your continue button has a UI Button Key Trigger component set to Space or Return, remove it. If the button is already the current selection, this component will end up clicking it twice. The first time will fast forward. The second time will skip to the next entry.
Re: Skip to Line End.
Posted: Thu Nov 07, 2024 9:29 am
by rmagn
hi
sorry for bringing old thread up.
im setting mine like this (im using rewired integration) like this
img
but if i use the RAccept keys, it will still directly skip the conversation instead of skip to the end of the line.
how can i fix it? thank you!
Re: Skip to Line End.
Posted: Thu Nov 07, 2024 9:41 am
by Tony Li
Is RAccept mapped to the same inputs as your EventSystem's Submit (e.g., UISubmit)? If so, it may be registering a second click because the UIButtonKeyTrigger component may not be able to tell that it's being clicked by Submit.
Re: Skip to Line End.
Posted: Sat Nov 09, 2024 5:07 am
by rmagn
hi Tony,
i think yes i set rewired event system like this
img
is there any tips you have to workaround this? thank you!
Re: Skip to Line End.
Posted: Sat Nov 09, 2024 9:19 am
by Tony Li
Since RAccept is already mapped to the EventSystem's Submit input, the continue button doesn't need a UI Button Key Trigger component. Instead, tick the Dialogue Manager GameObject's Input Device Manager component > Always Auto Focus.
Re: Skip to Line End.
Posted: Sat Nov 09, 2024 9:52 pm
by rmagn
hi,
i set it like you told me
Dialogue Manager
img1
Dialogue UI Prefab
img2
but the result is still the same, when i press RAccept it doesnt skip to line end.
i tried deleting the UI key trigger component from the prefab too, but it still just skip the conversation line.
is there anything im missing?
thank yuou!
Re: Skip to Line End.
Posted: Sun Nov 10, 2024 12:18 am
by Tony Li
Hi,
Would you please post a screenshot of the inspector view of your continue button?