Page 1 of 1

NullReferenceException: Object reference not set to an instance of an object

Posted: Sat Nov 12, 2022 5:20 pm
by howevertt322
Hi Tony,
I am getting a NullReferenceException when I am trying to trigger a conversation.

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueSystemTrigger.DoConversationAction (UnityEngine.Transform actor) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:977)
PixelCrushers.DialogueSystem.DialogueSystemTrigger.Fire (UnityEngine.Transform actor) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:735)
PixelCrushers.DialogueSystem.DialogueSystemTrigger.TryStart (UnityEngine.Transform actor, UnityEngine.Transform interactor) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:717)
PixelCrushers.DialogueSystem.DialogueSystemTrigger.TryStart (UnityEngine.Transform actor) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:703)
PixelCrushers.DialogueSystem.DialogueSystemTrigger.OnUse () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTrigger.cs:550)
IntroTrigger.Start () (at Assets/Scripts/IntroTrigger.cs:14)
The IntroTrigger Start()simply do

Code: Select all

GetComponent<DialogueSystemTrigger>().OnUse();
Update:
Sorry, it is my fault, I accidentally made my Dialogue System Object inactive.