Search Issue Tracker

Not Reproducible

Votes

0

Found in

2018.3.0f1

Issue ID

1106559

Regression

No

InvalidOperationException raises while creating a variant from script second time

Scene Management

-

1. Open attached project
2. Click "Test->Run" menu item
3. Open "Variant" prefab asset
4. Delete "Variant" prefab asset
5. click "Test->run" one more time
==>
InvalidOperationException: Requesting 'prefabContentsRoot' from Awake and OnEnable are not supported
UnityEditor.Experimental.SceneManagement.PrefabStage.get_prefabContentsRoot () (at C:/UnitySource/Trunk/Editor/Mono/SceneManagement/StageManager/PrefabStage/PrefabStage.cs:62)
UnityEditor.SceneHierarchyStageHandling.CachePrefabHeaderText (UnityEditor.SceneManagement.StageNavigationItem stage) (at C:/UnitySource/Trunk/Editor/Mono/SceneHierarchyStageHandling.cs:237)
UnityEditor.SceneHierarchyStageHandling.PrefabStageHeaderGUI (Rect rect) (at C:/UnitySource/Trunk/Editor/Mono/SceneHierarchyStageHandling.cs:261)

Also reproducible on trunk (2019.1.0a12)

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.