ReferenceException with Quest Log Window
Posted: Mon Jan 22, 2024 6:10 pm
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.
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.