"AddVariadicParams" is not avaiable for behavior

For developers using the Construct 2 Javascript SDK

Post » Sun Nov 11, 2012 7:24 am

Hi, @Ashely

I add "AddVariadicParams" in behavior in edittime.js, but C2 editor does not know it. Would you please check if "AddVariadicParams" could be used in behavior?

I like the design of "AddVariadicParams"! It makes the interface more clearly in some cases.

Thanks for your help.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sun Nov 11, 2012 2:31 pm

AddVariadicParams is currently a hack specifically designed for the built-in Function object, and has a bunch of fairly obscure limitations that the Function object does not happen to run in to. I wouldn't recommend using it if possible for the time being - what are you hoping to use it for?
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Sun Nov 11, 2012 2:54 pm

@Ashley

I try to build some plugins which could call official function object. So I get the parameter list then pass this list into official function object.

I had used AddVariadicParams in my timeline plugin, it works fine. But I could not add AddVariadicParams in a behavior type plugin.rexrainbow2012-11-11 14:56:56
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest