Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ysix on October 01, 2013, 11:56:45 AM

Title: 'Call Method' action error with Object type parameter[SOLVED]
Post by: ysix on October 01, 2013, 11:56:45 AM
Hi!
When I would use 'Call Method' action with object type parameter, It has an error message
"Parameters do not match method signature. Parameter x1(UnityEngine.Object) should be of type:x2"
in red box.(not in console but in playmaker error checker)
(x1 is sequence of parameter of my custom method, x2 is the type(my custom class name) of the parameter.)

I've matched object type with the type of method's parameter perfectly, so actually It works very well now in my project, but this error message is annoying me.
Is it should be thought just warning?
Title: Re: 'Call Method' action error with Object type parameter
Post by: Alex Chouls on October 01, 2013, 12:02:45 PM
Right now the error checker doesn't take method overrides into account, maybe that's what's going on here...? If it becomes very annoying you can comment out the ErrorCheck method in CallMethod.cs. Just add /* before the method and */ after. The Call Method UI is definitely first pass right now, we'll be improving it in the next few updates...
Title: Re: 'Call Method' action error with Object type parameter
Post by: ysix on October 01, 2013, 12:43:02 PM
Thanks for too quick reply!

I think 'Call Method' action give most powerful and useful flexibility to Playmaker. I would appreciate very much for your implementing this and cheer you up!

so, remaining some ideas about

maybe you'd already thought about like that or better, I'm extremely anticipating next update improved.

thanks again!