playMaker

Author Topic: PlayMakerProjectTools compiler error  (Read 2353 times)

Jbag

  • Playmaker Newbie
  • *
  • Posts: 6
PlayMakerProjectTools compiler error
« on: October 17, 2023, 01:21:44 PM »
Getting this error:

Code: [Select]
Assets/PlayMaker/Editor/PlayMakerProjectTools.cs(163,46): error CS0117: 'SceneManager' does not contain a definition for 'loadedSceneCount'
unable to find a solution elsewhere, any help is appreciated. 

Trying to build for iOS. Working on MacBook os 12.7, Unity 2021.3.3 lts,

Thanks!
« Last Edit: October 17, 2023, 01:28:32 PM by Jbag »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: PlayMakerProjectTools compiler error
« Reply #1 on: March 15, 2024, 10:34:42 AM »
Sorry, didn't see this earlier. There are 2 main reasons for this kind of compile error:

- There's a script in the project that defines SceneManager in the global namespace, which overrides the UnityEngine.SceneManager. All scripts should use a namespace to avoid these collisions, especially with common names like SceneManager. The solution is to find the script (e.g. search for SceneManager in the Project View or VisualStudio) and remove it if not used, or edit the file to add a namespace.

- The project is using a version of Playmaker meant for a different version of Unity. For example, after trying to move the project to an older version of Unity. The solution is to re-download Playmaker in the Package Manager and re-import it. The installer might not run automatically if the project has errors. In that case you can import the package manually from Assets/PlayMaker/Editor/Install.