Sudden "Assertion Failed" error in DialogueSystemController
Posted: Thu Oct 20, 2022 12:09 am
Hello!
I started working with the Dialogue System and everything has been going well, but suddenly I started getting the following error:
This maps to this code within the DialogueSystemController:
I set up the Dialogue System in the scene a bit ago, and have been working on other things, but then randomly started getting the error.
Does anyone know where this might be coming from? I'm kind of at a loss as the error isn't super helpful.
I started working with the Dialogue System and everything has been going well, but suddenly I started getting the following error:
Code: Select all
Assertion failed on expression: 'm_GameObjects.find(gameObject.GetInstanceID()) == m_GameObjects.end()'
UnityEngine.StackTraceUtility:ExtractStackTrace ()
PixelCrushers.DialogueSystem.DialogueSystemController:Awake () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:399)
Code: Select all
if (dontDestroyOnLoad)
{
if (this.transform.parent != null) this.transform.SetParent(null, false);
DontDestroyOnLoad(this.gameObject); <---- this line
}
Does anyone know where this might be coming from? I'm kind of at a loss as the error isn't super helpful.