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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
howevertt322
Posts: 12
Joined: Thu Aug 05, 2021 5:15 pm

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

Post 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.
Post Reply