Original Discord Post by xisquinha.03 | 2024-03-19 16:50:58
I’m trying to crate a scene in unity with just a character but when I run it, appears a few errors in my console (I already restarted the unity 4x times):
NullReferenceException: Object reference not set to an instance of an object
Convai.Scripts.ConvaiNPC.FindActiveInputField () (at Assets/Convai/Scripts/ConvaiNPC.cs:323)
NullReferenceException: Object reference not set to an instance of an object
Convai.Scripts.ConvaiNPC.HandlePlayerInputs () (at Assets/Convai/Scripts/ConvaiNPC.cs:245)
NullReferenceException: Object reference not set to an instance of an object
Convai.Scripts.Utils.ConvaiPlayerMovement.HandleCursorLocking () (at Assets/Convai/Scripts/Utils/ConvaiPlayerMovement.cs:80)
I had this issue with the Unity demo project (downloaded today) too when trying to create a new scene with the Convai template. Same kinds of NullReferenceException errors. Inserting the scene base prefab and replacing Amelia with my own RPM avatar/character partially worked but holding down “T” to speak brought up Unity editor elements instead of accepting voice. I was able to simply copy the Amelia demo scene, remove Amelia and add my avatar there… so its maybe something minor in the setup or scripts for the New Scene process that is amiss. Thanks for a very useful demo scene and base to learn things.