Playmaker Forum

PlayMaker News => General Discussion => Topic started by: miguelfanclub on December 18, 2021, 03:36:43 AM

Title: [SOLVED] Error from 2021.1 to .2
Post by: miguelfanclub on December 18, 2021, 03:36:43 AM
I got this from upgrading to 2021.2 from .1

It happens only when opening the playmaker editor window. Builds are working fine.

TypeLoadException: Could not resolve type with token 010000c3 from typeref (expected class 'UnityEditor.Experimental.SceneManagement.PrefabStage' in assembly 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
HutongGames.PlayMakerEditor.FsmEditor.OnEnable () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmEditor.cs:558)
Title: Re: Error from 2021.1 to .2
Post by: djaydino on December 18, 2021, 08:55:20 AM
Hi.
Have you updated to the latest playmaker version?
Title: Re: Error from 2021.1 to .2
Post by: miguelfanclub on December 18, 2021, 11:37:36 AM
No, project is 1.9.3.f4 and unity 2021.1.
Upgrading to unity to 2021.2 from there triggers the mentioned error. Updating FROM there to latest playmaker version dont solve the problem.

I havent tried upgrading PM first and then jump to 2021.2.
Title: Re: Error from 2021.1 to .2
Post by: djaydino on December 19, 2021, 10:18:10 AM
Hi.
I will ping Alex

Do you have the error as well on a clean project?
Title: Re: Error from 2021.1 to .2
Post by: Alex Chouls on December 19, 2021, 08:51:26 PM
In 2021.2 the Unity API Updater should automatically fix this error. Maybe the updater didn't run when you updated the project. Try right-clicking the PlayMaker folder and selecting Reimport.
Title: Re: Error from 2021.1 to .2
Post by: miguelfanclub on December 20, 2021, 03:10:51 PM
Yes, that solved the problem. Thanks!