Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: grimmy on January 30, 2021, 02:57:10 PM
-
'ArgumentException: method arguments are incompatible'
I'm getting this error when I click my button (with a Button component) in game.
It doesn't seem to matter what transition I use(FINISHED, UI CLICK etc), I always get the error.
This is my first mess around with Playmaker for a very long time..
Any ideas?
Cheers
-
What version of Unity and Playmaker are you using?
It's best not to mix system and user events. UI CLICK will be sent by Unity/PlayMaker if the FSM is on a GameObject with a button component. No need to use an action.
If you use an action it's best to make a new custom event (e.g., Clicked or something specific to the situation e.g., Close Menu)
You can read more about events here: https://hutonggames.fogbugz.com/f/page?W128
-
I tried with my own custom event and got the same error.
Im using Unity 2020.2.1f1 with Playmaker 1.9.0 (That's according to the welcome screen but my package manager says its 1.9.1)
-
Did you install after importing?
PlayMaker > Help > About PlayMaker should say 1.9.1.p2
If you still get the error in 1.9.1.p2 please copy/paste the full error from the console. Thanks!
-
For some reason Package manager wasn't downloading over my old package. Anyway..
I can confirm this all works flawlessly in 1.9.1.p2
Cheers