AbstractDialogueUI.Update not called

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
radioactivedogs
Posts: 7
Joined: Sat Jul 09, 2022 10:35 pm

AbstractDialogueUI.Update not called

Post by radioactivedogs »

Hi Tony,

Been trying desperately to fix this myself this morning but I'm lost at this point. We've created our own original dialogue UI that inherits from AbstractDialogueUI and CanvasDialogueUI but I've found that now the Update method isn't being called by the MonoBehaviour.
AbstractDialogueUI.png
AbstractDialogueUI.png (25.35 KiB) Viewed 275 times
SpaceDialogueUI.png
SpaceDialogueUI.png (52.02 KiB) Viewed 275 times
Neither method is being called and it is setup properly to override the original method so I'm at a complete loss for what's up. I started a new project and just used the StandardDialogueUI and that works. The original script we made has some code from StandardDIalogueUI but most of it is our own work.

Any assistance with this would be greatly appreciated

Code found here: https://gist.github.com/addie-lombardo ... 0eeb066103
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: AbstractDialogueUI.Update not called

Post by Tony Li »

Hi,

It's a regular Update() method, which means Unity will call it automatically every frame as long as it's on an active GameObject in the scene and the component (i,e., your SpaceDialogueUI on the GameObject) is enabled. Make sure the GameObject is active and the component is enabled.
radioactivedogs
Posts: 7
Joined: Sat Jul 09, 2022 10:35 pm

Re: AbstractDialogueUI.Update not called

Post by radioactivedogs »

Tony Li wrote: Thu Aug 18, 2022 2:50 pm Hi,

It's a regular Update() method, which means Unity will call it automatically every frame as long as it's on an active GameObject in the scene and the component (i,e., your SpaceDialogueUI on the GameObject) is enabled. Make sure the GameObject is active and the component is enabled.
Ah wow, for some reason a script disabled it, sorry for the ridiculous post.
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: AbstractDialogueUI.Update not called

Post by Tony Li »

No worries; glad you got to the bottom of it!
Post Reply