CS0117 error on an Unity Extension Asset "Unity Particle Pack 5.x"

I have a problem that I don’t know how to resolve, I already went to the Documentation about “What is CS0117?” but I still don’t understand the problem,
the problem comes from this to lines of code:

? UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInScene(volume.gameObject, customScene)
: UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInMainScenes(volume.gameObject);

And the error is this one:
Library/PackageCache/com.unity.postprocessing@2.0.3-preview/PostProcessing/Runtime/PostProcessManager.cs(424,66): error CS0117: ‘EditorSceneManager’ does not contain a definition for ‘IsGameObjectInScene’

And this one:
Library/PackageCache/com.unity.postprocessing@2.0.3-preview/PostProcessing/Runtime/PostProcessManager.cs(424,66): error CS0117: ‘EditorSceneManager’ does not contain a definition for ‘IsGameObjectInMainScene’

How do I resolve those errors?

Are you using the post processing package? If so, perhaps update the package.

Otherwise you could try removing the post processing package.

Alternately check the asset store for that package and see if there is a support link or any stated dependencies on the post processing stack being at a particular version.

The only thing I did is install the package and then I imported it to my package, otherwise, I found a solution that consists in importing the entire package into a new project and export from that project of Unity the effects without the scripts, for now it works for me that way

1 Like

I´ve got the same problem. I installed a particle pack and got the error. But I fixed it, by just updating unity to the newest version (2021.1.7f1) and restarted my project. I just didn´t read with which version the package is compatible. Hope that helps :slight_smile: