Page 1 of 1

Sending message to Dialogue Manager's current conversation

Posted: Fri Nov 27, 2020 1:58 am
by fkkcloud
화면 캡처 2020-11-26 225607.png
화면 캡처 2020-11-26 225607.png (88.02 KiB) Viewed 219 times
Can I just have this send message to the current conversation?
(without specifying Recipent gameObject? since it is a singleton? Also, I hope I dont write a additional script to just set that here)

Re: Sending message to Dialogue Manager's current conversation

Posted: Fri Nov 27, 2020 8:49 am
by Tony Li
No, you must assign a GameObject to the Send Message action.

You could use the SendMessage() sequencer command instead. To send a message to the Dialogue Manager, select Add Action > Play Sequence. Then set the Sequence to something like:

Code: Select all

SendMessage(Clear,,Dialogue Manager)

Re: Sending message to Dialogue Manager's current conversation

Posted: Fri Nov 27, 2020 10:58 am
by fkkcloud
Since this is independent from a node of conversation, it's just basically a function that is defined as SequenceCommand type, right?

Re: Sending message to Dialogue Manager's current conversation

Posted: Fri Nov 27, 2020 11:11 am
by Tony Li
Yes, that's correct.