Original Discord Post by akster213 | 2024-09-27 16:17:18
Sometimes the NPC will not respond to the player’s speech input. Unity throws an error that says MissingReferenceException: The object of type ‘TextMeshProUGUI’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Convai.Scripts.Runtime.UI.ChatBoxUI.DestroyOldestMessage (). We have the chat box disabled in the settings window, is that the issue? When this issue happens the character will still go through the animations as if it is speaking and the mouth will move, but no audio output will occur. Please let me know how to fix this, it has occurred many times.
Update: just restarting my PC fixed the error for some reason, but I would really like a solution. I know that this won’t be a permanent solution seeing as this has happened multiple times and I have restarted my PC multiple times since then.
Reply by akster213 | 2024-09-27 16:17:18
Sometimes the NPC will not respond to the player’s speech input. Unity throws an error that says MissingReferenceException: The object of type ‘TextMeshProUGUI’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Convai.Scripts.Runtime.UI.ChatBoxUI.DestroyOldestMessage (). We have the chat box disabled in the settings window, is that the issue? When this issue happens the character will still go through the animations as if it is speaking and the mouth will move, but no audio output will occur. Please let me know how to fix this, it has occurred many times.
Reply by k3kalinix | 2024-09-27 17:06:10
I think you changed/removed something. I suggest you revert the prefab changes.