OnExecute() event with articy:draft import

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
undecode
Posts: 25
Joined: Mon Apr 13, 2020 3:53 pm

OnExecute() event with articy:draft import

Post by undecode »

Hi, i'm using OnExecute() event in particular conversation nodes with an ScripteableObject function that allows me to change my background gameobject from a list of images.

I was wondering if it was possible to reference events somehow in articy:draft, to later import them (much like Sequences/Stage directions work). Events don't appear in "All Fields" so I guess a template from articy:draft won't work and a more advanced approach will be needed?

Thanks
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnExecute() event with articy:draft import

Post by Tony Li »

Hi,

That's correct. Don't use OnExecute() if you're importing or exporting your whole database outside of Unity.

Since articy:draft's editor can't reach into Unity directly, the best approach is to use sequencer commands or Lua functions. If you're a little comfortable with C# scripting, custom sequencer commands are quite easy to write.
undecode
Posts: 25
Joined: Mon Apr 13, 2020 3:53 pm

Re: OnExecute() event with articy:draft import

Post by undecode »

Hi Tony, thanks for the quick response.

I've went with the custom sequence path and it's simply the best option. Way easier than OnExecute() event and more flexible.

Thanks for your help!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnExecute() event with articy:draft import

Post by Tony Li »

Glad to help!
Post Reply