InputPin and Comment

Fri 31. Mar 2017, 09:04

If I have further line of comment in an inputPin, the script generated it's not good: (I have not dot lot of test to see if it's because I use in commentary condition like format)
the input pin:
Code: Select all
// Toujours mettre 2 slash au début d'une ligne
// Mettez les noms de variables comme vous voulez, par exemple :
// AEcouterAudio1 == true;
//Ce message sera donc accessible seulement si AEcouterAudio1 est true



Code: Select all
       
        /// <summary>
        /// ObjectID: 0x0
        /// Articy Object ref: articy://localhost/view/cc005436-028a-4fee-85eb-b93b5aca0adb/0?pane=selected&amp;tab=current
        /// </summary>
        public bool Script_6laS3k6DjEe8jnDABBuNKw(ArticyGlobalVariables aGlobalVariablesState, Articy.Unity.IBaseScriptMethodProvider aMethodProvider)
        {
            return // AEcouterAudio1 == true//Ce message sera donc accessible seulement si AEcouterAudio1 est true;
        }
       


Have a nice day :)
User avatar
Zeldarck
 
Posts: 55
Joined: Thu 9. Mar 2017, 16:03

Re: InputPin and Comment

Fri 31. Mar 2017, 09:36

Hi Zeldarck,

Thanks for reporting that! Just to make sure, i see 2 parts that are problematic.

1) For some reason new lines are ignored.
2) When the script only contains comments and the script is a condition, the necessary true is added at the end of the last comment.

Did i miss something else?

Best regards

Nico
Nico Probst
Senior Software Engineer | Articy | LinkedIn
User avatar
[Articy] Nico Probst
Articy Staff
Articy Staff
 
Posts: 217
Joined: Wed 23. Nov 2011, 09:45
Location: Bochum

Re: InputPin and Comment

Fri 31. Mar 2017, 09:41

Hum, it's not exactly that,
The two first comment/line are well ignored

But the "true" at the end was already here, I wrote it in my comment, just the ";" it's add
User avatar
Zeldarck
 
Posts: 55
Joined: Thu 9. Mar 2017, 16:03

Re: InputPin and Comment

Fri 31. Mar 2017, 09:46

Yes, i just tried it, and the true at the end was just from you ... i can reproduce it and i'm working on a fix!

Thanks again

Nico
Nico Probst
Senior Software Engineer | Articy | LinkedIn
User avatar
[Articy] Nico Probst
Articy Staff
Articy Staff
 
Posts: 217
Joined: Wed 23. Nov 2011, 09:45
Location: Bochum

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 15 guests

Who We Are
Contact Us
Social Links