Smooth nodes transition

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Smooth nodes transition

Post by Kole90 »

Hey Tony,

is there a way to set up smooth nodes transition, like in Subsurface Circular? And by that I mean when one node comes after the other it smoothly pushes the node before it up, so you can continue reading that old node if you haven't finished. Hope I make sense, will post a video of Subsurface Circular gameplay here to give you a better idea of what I want. Thanks!

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

Re: Smooth nodes transition

Post by Tony Li »

This post has a link to a Subsurface Circular-style UI example. I don't remember if it smoothly pushes the node up, and I'm out of the office for several hours. I'll check the example later today. If it doesn't smoothly push them up, I'll update the example.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Smooth nodes transition

Post by Kole90 »

Yeah I was the one bothering you with that post as well :lol: I'm still using modified version of that UI that you made but it doesn't smoothly push them up, thanks for your help in advance.
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Smooth nodes transition

Post by Tony Li »

Oh yeah! Oops. :oops:

When I get back to the office, I'll add smooth scrolling.
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Smooth nodes transition

Post by Tony Li »

Hi,

Here's an updated scene: SubsurfaceSimilar_2018-05-22.unitypackage

I updated TemplatedConversationLogUI's JumpToBottom() coroutine into a ScrollToBottom() coroutine that scrolls smoothly over 1 second by default, although you can tweak the speed in the inspector. There's also a change in the AddMessage() method marked "Updated for DS 1.8.1+" to accommodate a UI change in DS 1.8.1.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Smooth nodes transition

Post by Kole90 »

Thanks a lot Tony! Cheers!
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Smooth nodes transition

Post by Kole90 »

Hey Tony I came across a possible bug concerning this add-on, while the smooth scrolling of the text works, I've noticed that it kinda fades away as the dialogue extends. So everything is fine in the beginning but as the dialogue progresses and more and more nodes are being written the smooth scrolling is slowly becoming, well... not smooth, to the point where the effect isn't noticeable at all. Can you please check it out on your machine with some longer dialogue? I'm using the newest version of dialogue system 2.1 and Unity 2018.1.5f1.
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Smooth nodes transition

Post by Tony Li »

Good catch! The scrolling formula wasn't taking into account the scale as the content grew in height. Here's a direct download to the updated package: SubsurfaceSimilar_2018-07-04.unitypackage. It's also on the Extras page.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Smooth nodes transition

Post by Kole90 »

Thanks for the update! ;)
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Smooth nodes transition

Post by Kole90 »

Hi Tony, I've found another possible bug concerning this add on. Scroll is not working as it should, when you get the scroll bar and start scrolling up to see the text that was already written the scrollbar automatically starts scrolling back down. It may be happening on my project only, but if you have the time check it out. Thanks!

P.S.
Should I write here every time I find some bug regarding this add on?
Post Reply