playMaker

Author Topic: CallMethod ambiguous matching  (Read 2217 times)

OrangeeZ

  • Playmaker Newbie
  • *
  • Posts: 2
CallMethod ambiguous matching
« 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!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: CallMethod ambiguous matching
« Reply #1 on: March 16, 2014, 08:55:04 AM »
Cool! Thanks for the revised action! I'll get this into the next update...

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: CallMethod ambiguous matching
« Reply #2 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!