Custom Methods Are Generated Incorrectly On Export

Sat 16. Nov 2019, 02:26


My condition node custom methods are generated with the wrong return type on export into Unity when I use a string global variable as a parameter.

Here's what I'm doing:
- On some condition node, I have the custom method SomeMethod(GlobalVar.StringVar)
- On import to Unity, IScriptMethodProvider thinks the return type is void. ArticyScriptFragments also behaves strangely. It's inconsistent, but sometimes part of the generated ArticyScriptFragments methods think the return type is void while others think it is bool, so I receive a compile error. It happen sporadically, so I have trouble recreating it.
- On the same condition node, without changing anything else, I change the method to SomeMethod("StringVar")
- On import, everything is generated perfectly. SomeMethod() has the return type of bool

Unity Version: 2018.4.4f1
Unity Articy Importer: I can't any version info on the plugin, but the Unity package was name ArticyImporter_34886
Articy Draft 3: 3.1.20

Any help or guidance would be appreciated.

Posts: 5
Joined: Mon 11. Nov 2019, 14:40

Re: Custom Methods Are Generated Incorrectly On Export

Thu 21. Nov 2019, 16:55

Hi FlowFoSure,

thanks for reporting this issue.
We could reproduce it and will take a closer look into it soon.

Best regards,

User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Re: Custom Methods Are Generated Incorrectly On Export

Mon 17. Feb 2020, 17:07

Just in case anyone else has this issue, I've found a tidy workaround..

Instead of having a Condition with the following
Code: Select all

which will generate a method with void return type, using this instead
Code: Select all
GetSomeBool() == true

in your condition node will correctly generate a method with bool return type, and no need to add redundant parameters.
Posts: 38
Joined: Mon 17. Apr 2017, 19:12

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 3 guests

Who We Are
Contact Us
Social Links