title: How do I fix the error I receive in Post Processing when launching Unity?
body: <p>I'm pretty new to Unity so forgive me If I didn't give you enough information but whenever I open project in Unity I get a few errors.</p>
  <p>First two are: <a href="https://i.stack.imgur.com/Vhyal.png" rel="nofollow noreferrer">Unity Error Image</a></p>
  <p>#1:</p>
  <pre><code>***Library\PackageCach\.com.unity.postprocessing@2.0.3-preview\PostProccessing\Runtime\PostProcessManager.cs(424,66):error CS0117:'EditorSceneManager' does not contain a definition for 'IsGameObjectInScene'\***
  </code></pre>
  <p>#2: <code>***Library\PackageCach\.com.unity.postprocessing@2.0.3-preview\PostProccessing\Runtime\PostProcessManager.cs(425,66):error CS0117:'EditorSceneManager' does not contain a definition for 'IsGameObjectInMainScene'***</code></p>
  <p>If I go into the code and delete these two lines</p>
  <pre><code> ? UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInScene(volume.gameObject, customScene)
                  : UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInMainScenes(volume.gameObject);
  </code></pre>
  <p>From this</p>
  <pre><code> #if UNITY_2018_3_OR_NEWER &amp;&amp; UNITY_EDITOR
                  // If the current camera have a custom scene then the camera is rendering that scene,
                  // otherwise the camera is rendering the scenes in the SceneManager.
                  var customScene = camera.scene;
                  return customScene.IsValid()
                      ? UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInScene(volume.gameObject, customScene)
                      : UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInMainScenes(volume.gameObject);
      #else
                  return true;
  </code></pre>
  <p>It gives me a Syntax error in Unity :
  <em><strong><strong>; expected</strong></strong></em></p>
  <p>When I fix that error it gives me this error:
  <code>**Library\PackageCache\com.unity.postprocessing@2.0.3-preview\PostProcessing\Editor\Utils\PostProcessShaderIncludePath.cs(10,10): error CS0619: 'ShaderIncludePathAttribute' is obsolete: '[ShaderIncludePath] attribute is no longer supported. Your shader library must be under the Assets folder or in a package. To include shader headers directly from a package, use #include &quot;Packages/&lt;package name&gt;/&lt;path to your header file&gt;&quot;'*</code>*</p>
  <p>After I delete this line of code:</p>
  <pre><code>[ShaderIncludePath]
  </code></pre>
  <p>From this:</p>
  <pre><code>#if UNITY_2018_1_OR_NEWER
          [ShaderIncludePath]
  #endif
          public static string[] GetPaths()
          {
              var srpMarker = Directory.GetFiles(Application.dataPath, &quot;POSTFXMARKER&quot;, SearchOption.AllDirectories).FirstOrDefault();
              var paths = new string[srpMarker == null ? 1 : 2];
              var index = 0;
              if (srpMarker != null)
              {
                  paths[index] = Directory.GetParent(srpMarker).ToString();
                  index++;
              }
              paths[index] = Path.GetFullPath(&quot;Packages/com.unity.postprocessing&quot;);
              return paths;
  </code></pre>
  <p>After fixing all that I can use Unity normally. If this has no future effect on exporting my project I'm fine with deleting it every time. But I have zero idea what any of that code does, so If anyone can help me or knows how to solve it please let me know.</p>