Search Issue Tracker
Active
Votes
0
Found in
2021.2.0a9
Issue ID
1321192
Regression
Yes
[Cinemachine] Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
[Cinemachine] Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
On undoing after removing "CinemachineVirtualCamera" in prefab, editor thrown Assertion failed on expression, Refer to the attached video
Steps to reproduce:
1) Create a new project
2) Window > Package Manager > Cinemachine
3) Hierarchy > Right-Click > Cinemachine > VirtualCamera > make a prefab
4) Project > CM vcam > Inspector > Right-Click >Remove Component
5) Edit > Undo
Actual Result:
Assertion failed on expression is thrown on undoing after removing "CinemachineVirtualCamera" in prefab
Expected Result:
No error in the console.
Reproducible in:
2021.2.0a9 with Package version 2.7.2.
Working Fine in:
2021.2.0a8 with Package version 2.7.2.
2021.1.0b12 with Package version 2.7.2
Environment:
Windows 10, macOS 10.15, and Ubuntu 18.04 LTS
Stack trace:
Assertion failed on expression: '!GetUndoManager().IsProcessing()'
UnityEditor.ObjectFactory:CreateGameObject (string,System.Type[])
Cinemachine.Editor.InspectorUtility:CreateGameObject (string,System.Type[]) (at library/packagecache/com.unity.cinemachine@2.7.2/editor/utility/inspectorutility.cs:188)
Cinemachine.Editor.CinemachineVirtualCameraEditor/CreatePipelineWithUndo/<>c:<.cctor>b__0_0 (Cinemachine.CinemachineVirtualCamera,string,Cinemachine.CinemachineComponentBase[]) (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:253)
Cinemachine.CinemachineVirtualCamera:CreatePipeline (Cinemachine.CinemachineVirtualCamera) (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:291)
Cinemachine.CinemachineVirtualCamera:UpdateComponentPipeline () (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:438)
Cinemachine.CinemachineVirtualCamera:GetComponentPipeline () (at library/packagecache/com.unity.cinemachine@2.7.2/runtime/behaviours/cinemachinevirtualcamera.cs:316)
Cinemachine.Editor.CinemachineVirtualCameraEditor:UpdateComponentEditors () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:440)
Cinemachine.Editor.CinemachineVirtualCameraEditor:UpdateInstanceData () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:427)
Cinemachine.Editor.CinemachineVirtualCameraEditor:ResetTargetOnUndo () (at library/packagecache/com.unity.cinemachine@2.7.2/editor/editors/cinemachinevirtualcameraeditor.cs:52)
UnityEditor.Undo:Internal_CallUndoRedoPerformed ()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Add comment