Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Desoro on May 03, 2016, 03:39:04 AM

Title: Errors when importing Mecanim package for PlayMaker 1.8 / Unity 5.3
Post by: Desoro on May 03, 2016, 03:39:04 AM
First off, I am using Unity 5.3 and PlayMaker 1.8.

Step 1: When important just the base PlayMaker 1.8 package, my console remains clear with no errors.

Step 2: When I install the Mecanim addon package I receive these two errors:

Assets/PlayMaker Animator/Scripts/PlayMakerAnimatorStateSynchronization.cs(106,49): error CS0103: The name `SwitchState' does not exist in the current context

Assets/PlayMaker Animator/Scripts/PlayMakerAnimatorStateSynchronization.cs(119,49): error CS0103: The name `SwitchState' does not exist in the current context

How can I resolve this? I opened the problematic script in Visual Studio and the "Quick fix" was to add this at the end of the script:

private void SwitchState(Fsm fsm, FsmState _fsmState)
    {
        throw new NotImplementedException();
    }

The console errors went away but I have my doubts that was viable fix.
Title: Re: Errors when importing Mecanim package for PlayMaker 1.8 / Unity 5.3
Post by: Alex Chouls on May 03, 2016, 03:10:29 PM
Sorry about that, there does seem to be an error in that download.

Maybe Jean has fixed this on the Ecosystem, but hasn't updated the download package yet...

Anyway, I've attached a fix, but Jean need to review this since it's his baby :)
Title: Re: Errors when importing Mecanim package for PlayMaker 1.8 / Unity 5.3
Post by: jeanfabre on May 04, 2016, 03:20:44 AM
Hi,

 Yeah, thanks for spotting this. It's updated now, simply updated from the Ecosystem.

Bye,

 Jean