How to disable all animations on dialogue ui

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

How to disable all animations on dialogue ui

Post by hipsterdufus »

Hi, I'm wondering how to disable all animations on my UI for some of my subtitles/response menus. I tried disabling the animator and removing the trigger names but now it just locks up. I'm having an issue where if the player finishes a conversation that causes the scene to change it is freezing up the dialogue ui the next time it gets opened so I think if the dialogue finishes instantly instead of being in a transition state as the scene changes it will fix the problem. Thank you for your time.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to disable all animations on dialogue ui

Post by Tony Li »

Hi,

Try removing the Animator components entirely. And still clear the Show Trigger and Hide Trigger fields on the Dialogue Panel and the subtitle panels and response menu panels.
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Re: How to disable all animations on dialogue ui

Post by hipsterdufus »

Thanks. I have it sort of working but still have an issue. I have 3 subtitle panels and 2 menu panels under the one Standard Dialogue UI. I just want to remove the animations for 1 of the subtitle panels and 1 of the menu panels. Is this possible? Because it seems like there is some hierarchy of animations going on from the UI Panel at a higher level down to the Subtitle panels and so I'm having issues removing the Animators and having things work. The dialogue UI freezes up for 10 seconds every node step. I've had that before and it's usually because something is waiting for an animation to finish before progressing and it has to time out after 10 seconds.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to disable all animations on dialogue ui

Post by Tony Li »

Yes, if it's freezing for 10 seconds, that's the animation wait timeout. If a panel (subtitle panel or menu panel) doesn't have an Animator component and its Show/Hide/Focus/Unfocus triggers are blank, it shouldn't wait for an animation; it should just immediately activate or deactivate the panel.
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Re: How to disable all animations on dialogue ui

Post by hipsterdufus »

I have been trying to debug and I can see that somehow the UI panel state is getting set to Closing but I it's not able to close fully even though I have the animation triggers cleared and no animator component. Everything looks like it should work but it's not for some reason. I'll have to keep looking.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to disable all animations on dialogue ui

Post by Tony Li »

Can you send a reproduction project/scene to tony (at) pixelcrushers.com?

It should just be a matter of removing the Animator components and clearing the Show and Hide trigger properties. (Technically you don't even need to clear the properties since they won't do anything if there's no Animator.)

Here's an example scene:

DS_DemoScene1_NoUIAnimation_2022-08-30.unitypackage

It's DemoScene1, except I assigned the Basic Standard Dialogue UI and removed its Animators.
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Re: How to disable all animations on dialogue ui

Post by hipsterdufus »

Hello, things work if I remove all the animator components. When I add an animator to only my subtitle panel it seems to have the same issue of getting stuck in the closing state. What is it that actually sets the panel to the closed state? Do I need a certain animation? In the animator I have a Show, Hidden, and Hide state which are triggered using the Show and Hide triggers. Are there requirements for the state names maybe?
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to disable all animations on dialogue ui

Post by Tony Li »

Hi,

I thought you wanted to get rid of the animations?

If the panel has an Animator component, that Animator may be controlling the panel's visibility even if the StandardUISubtitle/MenuPanel isn't setting its triggers.

To work with StandardUISubtitle/MenuPanels, the animator controller doesn't need any specific state names. It works entirely by trigger parameters.
hipsterdufus
Posts: 95
Joined: Thu Aug 12, 2021 6:39 pm

Re: How to disable all animations on dialogue ui

Post by hipsterdufus »

Hello, sorry for not being clear. I only want to disable animations on one of my subtitle panels (I have a few different subtitle panels). So once it gets the trigger event to hide it is considered hidden? I only removed all animators for testing purposes and it did function without the 10 second delay, but then when I added one animator to one subtitle panel it immediately starts the 10 second time out before the conversation and after any dialogue node traversal.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to disable all animations on dialogue ui

Post by Tony Li »

Hi,

Can you send a reproduction project to tony (at) pixelcrushers.com? I don't know how to reproduce that. I tried removing the Animator from all panels except the PC Subtitle Panel. I turned on PC subtitles. There's no delay.
Post Reply