playMaker

Author Topic: InvalidCastException: Cannot cast from source type to destination type. playmake  (Read 1545 times)

Marc Saubion

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
Hi.

I just found some nasty bug with templates. As you can see on the picture below, my first "run fsm" instance has some weird things going on. It was setup months ago and some update screwd it up. I now have messed up variables like a gameobject set as the audio clip and this would disable the FSM and give the error message "InvalidCastException".

I'm not sure yet if this is following changes I made on my template (I added an array) or if this is due to Playmaker's or Unity's update. I'm currently on Unity 2018.3.6f1 and Playmaker 1.9.0p10.

Here is a screenshot of the screwd up "run fsm" followed by and a fresh on to compare. Next screenshot is the error message.

Thanks.