Search Issue Tracker

Fixed in 2020.3.X

Votes

0

Found in

2020.2.6f1

2020.3

2020.3.3f1

Issue ID

1361736

Regression

No

CheckConsistency error on saving modified Prefabs with AssetDatabase.SaveAssets() when Component in the Prefab is destroyed

Scene Management

-

How to reproduce:
1. Open the user-submitted project
2. Open the Prefab "Image" located in Assets>DelTest
3. Select the Child GameObject "Image" and observe the Image component in the Inspector window
4. Repeat steps 2 and 3 for the Prefab "Image 1"
5. Select the Menu Item Test>Test

Expected result: the Image components are removed from the Child GameObjects "Image" in Prefabs "Image" and "Image 1" without errors logged in the Console window
Actual result: the Image component is removed in Prefab "Image 1", but stays in Prefab "Image" with an error in the Console window

Reproducible with: 2020.2.6f1, 2020.3.10f1
Not reproducible with: 2019.4.29f1, 2020.2.5f1, 2020.3.11f1, 2020.3.17f1, 2021.19f1, 2021.2.0b9, 2022.1.0a7

Error message:
CheckConsistency: GameObject does not reference component MonoBehaviour. Fixing.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
EditorTest:Test () (at Assets/Editor/EditorTest.cs:21)

  1. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.11f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.