"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
104
S
25
G
214
Posts: 4,285
Reputation: 122,582

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
373
S
218
G
84
Posts: 23,446
Reputation: 186,082

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
104
S
25
G
214
Posts: 4,285
Reputation: 122,582


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests