Page 1 of 1

OnExecute() event with articy:draft import

Posted: Wed Apr 29, 2020 8:54 am
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

Re: OnExecute() event with articy:draft import

Posted: Wed Apr 29, 2020 10:53 am
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.

Re: OnExecute() event with articy:draft import

Posted: Thu Apr 30, 2020 12:50 pm
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!

Re: OnExecute() event with articy:draft import

Posted: Thu Apr 30, 2020 1:09 pm
by Tony Li
Glad to help!