Moaaz Afzal
Moaaz Afzal

Reputation: 33

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

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'

Upvotes: 2

Views: 22135

Answers (1)

derHugo
derHugo

Reputation: 90679

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

Upvotes: 16

Related Questions