Skip to Line End.

Announcements, support questions, and discussion for the Dialogue System.
PixelPete
Posts: 2
Joined: Mon Jun 17, 2019 5:17 pm

Skip to Line End.

Post 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? :cry:
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Skip to Line End.

Post 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.
PixelPete
Posts: 2
Joined: Mon Jun 17, 2019 5:17 pm

Re: Skip to Line End.

Post by PixelPete »

Thanks
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Skip to Line End.

Post 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.
rmagn
Posts: 21
Joined: Tue Jul 09, 2024 6:05 am

Re: Skip to Line End.

Post 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!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Skip to Line End.

Post 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.
rmagn
Posts: 21
Joined: Tue Jul 09, 2024 6:05 am

Re: Skip to Line End.

Post 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!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Skip to Line End.

Post 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.
rmagn
Posts: 21
Joined: Tue Jul 09, 2024 6:05 am

Re: Skip to Line End.

Post 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!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Skip to Line End.

Post by Tony Li »

Hi,

Would you please post a screenshot of the inspector view of your continue button?
Post Reply