error CS0117: 'EditorSceneManager' does not contain a definition for 'IsGameObjectInScene'

16,098

Multiple people already had that issue. It seems that it points to an outdated file from PostProcssing version 2.0.3 E.g. in this thread they solved it by

To fix this, you can delete Library/PackageCache/ the post processing folder

or

updating the "Post Processing" package to the verified version in the package manager fixed it.

Currently it should be version 2.1.7

enter image description here

and since the entry already exists in the documentation (the https://docs.unity3d.com/Packages/com.unity.postprocessing@latest/index.html points to https://docs.unity3d.com/Packages/[email protected] which currently still is a dead link) it seems that soon there might come out a version 2.2


In general errors regarding the Library folder often are caused by updating the project to a newer Unity version. In most cases those are simply solved by closing Unity, delete the entire Library folder and re-open the project in Unity. The Library folder is one of the folders Unity completely generates dynamically and therefore can be removed without any concerns as also mentioned here

Share:
16,098

Related videos on Youtube

Moaaz Afzal
Author by

Moaaz Afzal

Updated on June 04, 2022

Comments

  • Moaaz Afzal
    Moaaz Afzal almost 2 years

    an error shows i cant make the build in unity 2018.3.8

    i try to copy all assets to another folder but still error show

    i am really stuck to resolve it

    Library\PackageCache\[email protected]\PostProcessing\Runtime\PostProcessManager.cs(424,66): error CS0117: 'EditorSceneManager' does not contain a definition for 'IsGameObjectInScene'

  • Moaaz Afzal
    Moaaz Afzal almost 5 years
    Thanks it works fine for me. i just deleted the folder in Library\PackageCache\com.unity.postprocessing and works fine for me. Thanks Again
  • rminaj
    rminaj almost 4 years
    Man, this error is very annoying. Deleting the folder multiple times didn't work for me. Fixed it by updating the very well hidden PostProcessing package. Currently, the version is 2.3.0.