Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: OrangeeZ on March 16, 2014, 03:30:22 AM

Title: CallMethod ambiguous matching
Post by: OrangeeZ on March 16, 2014, 03:30:22 AM
Hi!

I have two methods with following signatures:

public void SetActive(GameObject layer);
public void SetActive(dfPanel layer);

If I try to set up a CallMethod Action that calls SetActive, it would display me an ambiguous matching error.

In attach there's a possible fix for that problem: instead of simply querying for a method with a name, all types of input variables are collected first. After that, we query method with both name and expected argument types.

Hopefully this will help!
Title: Re: CallMethod ambiguous matching
Post by: Alex Chouls on March 16, 2014, 08:55:04 AM
Cool! Thanks for the revised action! I'll get this into the next update...
Title: Re: CallMethod ambiguous matching
Post by: Alex Chouls on June 04, 2014, 07:44:33 PM
I've posted an updated Call Method action here:
http://hutonggames.com/playmakerforum/index.php?topic=7526.msg36344

Please test this if you get a chance... thanks!