"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
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

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
97
S
22
G
178
Posts: 4,121
Reputation: 104,049


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests