unitypackage-custom-hierarchy icon indicating copy to clipboard operation
unitypackage-custom-hierarchy copied to clipboard

Errors are thrown when doing a clean build

Open sandrofigo opened this issue 6 months ago • 0 comments

When freshly cloning a repository and running a build for the first time through the Unity CLI (CI/CD) errors similar to the one below are thrown:

Library\PackageCache\[email protected]\Editor\HierarchyDrawer.cs(344,31): error CS0234: The type or namespace name 'PrefabStageUtility' does not exist in the namespace 'UnityEditor.Experimental.SceneManagement' (are you missing an assembly reference?)

Unity Version: 2021.3.20f1

The error above does not prevent the build from finishing, but clutters the output logs with false positives.

Reason behind this is the usage of UnityEditor.Experimental.SceneManagement which has changed in newer version of Unity to UnityEditor.SceneManagement.

sandrofigo avatar Dec 15 '23 00:12 sandrofigo