Hello,
I am having an issue with the Quest Log Window. I am containing it in my pause menu, along with some other UI elements, like a game pause menu and a world map. Each of these menus have a CanvasGroup, and I added a CanvasGroup onto the parent Quest Log Window object so that it can toggle IsInteractable on and off while shifting through these menu items. It works as intended, except I am also getting a NullReferenceException error any time I interact with any UI element on the Quest Log Window. It seems to be a problem with the OnQuestListUpdated() function. I made sure that the scripts on it had all the same fields filled out as the Basic Standard Quest Log Window prefab, so I am unsure as to why this error is occuring. Here are screenshots of how the menu looks in game, as well as the error message I receive.
ReferenceException with Quest Log Window
-
- Posts: 8
- Joined: Mon Apr 10, 2023 12:42 pm
Re: ReferenceException with Quest Log Window
Hi,
Would it be possible to back up your project (just to be safe), make sure the backup is good, and update to the current Dialogue System version? Then check if the issue still occurs. If so, please take another screenshot of the Console like you did above.
Would it be possible to back up your project (just to be safe), make sure the backup is good, and update to the current Dialogue System version? Then check if the issue still occurs. If so, please take another screenshot of the Console like you did above.
-
- Posts: 8
- Joined: Mon Apr 10, 2023 12:42 pm
Re: ReferenceException with Quest Log Window
Hi Tony,
I have updated to the latest version of Dialogue System for Unity. The update went smoothly, but I am still left with the same NullReferenceException error when interacting with the Quest Log Window. I will try to investigate the error further on my own, but I am curious if I am missing something with this error.
I have updated to the latest version of Dialogue System for Unity. The update went smoothly, but I am still left with the same NullReferenceException error when interacting with the Quest Log Window. I will try to investigate the error further on my own, but I am curious if I am missing something with this error.
-
- Posts: 8
- Joined: Mon Apr 10, 2023 12:42 pm
Re: ReferenceException with Quest Log Window
Hi Tony,
So I figured out the problem based on that warning about the Main Panel not being assigned. I had it assigned in my Quest Log Window prefab, but when I had put that prefab inside my pause menu prefab, it somehow got unassigned.
So sorry for taking your time. Hope you have a good day.
So I figured out the problem based on that warning about the Main Panel not being assigned. I had it assigned in my Quest Log Window prefab, but when I had put that prefab inside my pause menu prefab, it somehow got unassigned.
So sorry for taking your time. Hope you have a good day.
Re: ReferenceException with Quest Log Window
Hi,
Glad you found the issue!
Glad you found the issue!