Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: nikki123 on May 21, 2019, 02:53:17 AM

Title: Error CS0426 after updating to the latest Playmaker version [SOLVED]
Post by: nikki123 on May 21, 2019, 02:53:17 AM
This error happens yesterday after I updated the Playmaker to the latest version. After updated, it suddenly shows these errors
1) Assets\Playmaker\Actions\UI\Selectable\UiNavigationSetMode.cs(17,66): error CS0426: The type name 'Mode' does not exist in the type 'Navigation'.
2) Assets\Playmaker\Actions\UI\Selectable\UiNavigationSetMode.cs(24,28): error CS0426: The type name 'Mode' does not exist in the type 'Navigation'.
At first, it removes the Playmaker bar and also the Playmaker Toolbar only have Playmaker Tools and Install Playmaker instead. I'm also really bad at script btw.
Please need help ASAP!
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: Fat Pug Studio on May 21, 2019, 04:57:36 AM
Are you using UiNavigationSetMode action? If not, delete it.
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: Alex Chouls on May 21, 2019, 09:54:29 AM
What version of Unity are you using?
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: enski on July 28, 2020, 02:33:49 PM
I am receiving the same 2 errors.  Just purchased Playmaker and installed it.  I have not started doing anything with Playmaker as my project will not build.  If I delete the file UiNavigationSetMode as recommended in this thread, I receive a whole pile of additional errors. Unity version 2019.4.2f1.  Please advise, Thanks in Advance.
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: djaydino on July 28, 2020, 04:42:47 PM
Hi.
What Playmaker version are you using?
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: enski on July 28, 2020, 05:52:13 PM
1.9 downloaded from the Asset Store today
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: Alex Chouls on July 29, 2020, 11:26:07 AM
I just tried it here and didn't get any errors.
Were these fresh projects that you were importing PlayMaker into?
From the error, it sounds like you might have a Navigation script in the global namespace that is hiding the UnityEngine.UI.Navigation type.
Title: Re: Error CS0426 after updating to the latest Playmaker version
Post by: enski on July 29, 2020, 12:40:02 PM
Thank you.  That was the issue.  We had another class called navigation.  We renamed it and the errors went away.  Again thanks for your help.