"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
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

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
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

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
109
S
27
G
276
Posts: 4,479
Reputation: 154,418


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests