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.
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
AbstractDialogueUI.Update not called
Re: AbstractDialogueUI.Update not called
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.
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.
-
- Posts: 7
- Joined: Sat Jul 09, 2022 10:35 pm
Re: AbstractDialogueUI.Update not called
Ah wow, for some reason a script disabled it, sorry for the ridiculous post.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.
Re: AbstractDialogueUI.Update not called
No worries; glad you got to the bottom of it!