У меня есть командный проект, и кто-то еще сделал что-то не так, и теперь у нас есть эта ошибка:
Library/PackageCache/com.unity.postprocessing@2.0.3-preview/PostProcessing/Runtime/PostProcessManager.cs(425,66): error CS0117: 'EditorSceneManager' does not contain a definition for 'IsGameObjectInMainScenes'
(мы новички в Unity)
мы получили такую ошибку два раз.
То, что я пытался:
Я уже пытался удалить пакет Unity Paricle, но ошибка все еще не устранена.
вот фрагмент кода, который появляется, когда я кликаю по ошибке:
<!-- language: C# -->
static bool IsVolumeRenderedByCamera(PostProcessVolume volume, Camera camera)
{
#if UNITY_2018_3_OR_NEWER && 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;
#endif