Page 1 of 1

AbstractDialogueUI.Update not called

Posted: Thu Aug 18, 2022 12:28 pm
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 272 times
SpaceDialogueUI.png
SpaceDialogueUI.png (52.02 KiB) Viewed 272 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

Re: AbstractDialogueUI.Update not called

Posted: Thu Aug 18, 2022 2:50 pm
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.

Re: AbstractDialogueUI.Update not called

Posted: Sat Aug 20, 2022 11:44 am
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.

Re: AbstractDialogueUI.Update not called

Posted: Sat Aug 20, 2022 12:12 pm
by Tony Li
No worries; glad you got to the bottom of it!