Unity Events System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hannah
Posts: 17
Joined: Mon Feb 22, 2016 10:42 pm

Unity Events System

Post by hannah »

Any chance of integrating the event system? I'd love to be able to call functions on dialogue nodes with it.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Events System

Post 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.
hannah
Posts: 17
Joined: Mon Feb 22, 2016 10:42 pm

Re: Unity Events System

Post 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).
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Events System

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