OnConversationLine (Subtitle) triggered multiple times
Posted: Mon Jun 26, 2023 9:51 am
Hey Tony,
I am trying to implement my own DialogueUI, implementing the IDialogueUI interface. So far so good, but I don't understand why this event is being fired multiple times.
I have a DialogueSystemEvents script attached to my DialogueUI prefab, there I assigned a callback to the OnConversationLine() event via the unity inspector.
When debugging, that callback is being fired multiple times. Do you have any ideea why this happens? I trigger my subtitle via DialogueManager.instance.StartConversation(), and I am 100% sure that I'm calling that only once.
Any help is appreciated, thanks.
I am trying to implement my own DialogueUI, implementing the IDialogueUI interface. So far so good, but I don't understand why this event is being fired multiple times.
I have a DialogueSystemEvents script attached to my DialogueUI prefab, there I assigned a callback to the OnConversationLine() event via the unity inspector.
When debugging, that callback is being fired multiple times. Do you have any ideea why this happens? I trigger my subtitle via DialogueManager.instance.StartConversation(), and I am 100% sure that I'm calling that only once.
Any help is appreciated, thanks.