Page 1 of 1

Unity Events System

Posted: Fri Mar 11, 2016 7:52 am
by hannah
Any chance of integrating the event system? I'd love to be able to call functions on dialogue nodes with it.

Re: Unity Events System

Posted: Fri Mar 11, 2016 8:45 am
by Tony Li
Hi,

I've been considering that. The only snag is that event system hookups would be lost when importing and exporting between third party editing tools such as Chat Mapper, articy:draft, and Google Sheets.

If you or anyone else has any suggestions or requests on how to handle that case, please let me know. Otherwise I'll try to get this in the next release with the caveat that event system hookups won't be preserved when importing and exporting between third party tools.

Re: Unity Events System

Posted: Sat Mar 12, 2016 5:29 am
by hannah
No ideas on that front! We're just using your editor (at least for now).

I got another question for you! Is there a way to ask the dialogue manager to send events to a script? I'd like to be able to listen to events on things other than actors to trigger functions (in lieu of the event system for now).

Re: Unity Events System

Posted: Sat Mar 12, 2016 9:35 am
by Tony Li
hannah wrote:I got another question for you! Is there a way to ask the dialogue manager to send events to a script? I'd like to be able to listen to events on things other than actors to trigger functions (in lieu of the event system for now).
Use the Dialogue System Events component in this package: DialogueSystemEvents_20160312.unitypackage. It'll be included in the next full release of the Dialogue System. It hasn't gone through the full testing battery yet, so if you notice an event not getting called please let me know. Just add it to your Dialogue Manager and/or the actor that you're interested in watching. The Dialogue Manager is the easiest because it gets the majority of script messages, which are what this component forwards as Unity events.