Page 1 of 1

Dialogue System trigger : OnUse() calling children ?

Posted: Tue Oct 27, 2020 9:25 pm
by Strook
I am using unity 2019.3.0f1 and Dialogue System 2.2.12

- I have an object A with a dialogue system trigger set to OnUse, used to trigger a conversation.
- i have an object B with a dialogue system trigger set to OnUse, used to set some LUA variables, and is called via Script

Here is my issue, and im not sure if its a feature or a bug :

The object B OnUse() seems to get called when Object A OnUse() is called


When OnUse() is called on a object, is it expected that all the children OnUsed() will be called ?

thanks !!

Re: Dialogue System trigger : OnUse() calling children ?

Posted: Tue Oct 27, 2020 10:37 pm
by Tony Li
Hi,

It depends on how you're calling OnUse(). If you're using a Selector or Proximity Selector, UNtick 'Broadcast To Children' if you don't want OnUse() to be called on children.

Re: Dialogue System trigger : OnUse() calling children ?

Posted: Wed Oct 28, 2020 9:28 am
by Strook
thanks ! that was it, i was having a hard time debugging why it was happening, thanks a lot

Re: Dialogue System trigger : OnUse() calling children ?

Posted: Wed Oct 28, 2020 9:32 am
by Tony Li
Happy to help!