Search Issue Tracker
Fixed in 2.7.1+
Fixed in 2.6.4
Votes
0
Found in [Package]
2.6.1-preview.6
Issue ID
1272146
Regression
No
Error messages are spammed in the Console when the CinemachineVirtualCamera Component is added to a Prefab
How to reproduce:
1. Open the user's attached "Bug Test.zip" project
2. Open the "testscene" Scene
3. Select the "Main Camera" Prefab in the Project window
4. Add the "CinemachineVirtualCamera" Component in the Inspector
5. Observe the Console log
Expected result: No error messages are thrown in the Console log
Actual result: "Setting the parent of a transform which resides in a Prefab Asset is disabled to prevent data corruption (GameObject: 'cm')" error message is getting spammed in the Console log (Full error message in the edit)
Reproducible with: 2.6.1-preview.6, 2.6.1 (2018.4.26f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0a21)
Not reproducible with: 2.6.0 (2018.4.26f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0a21)
Note:
- If the Prefab's instance with a CinemachineVirtualCamera Component is selected in the Hierarchy and Scene view is opened, "NullReferenceException: Object reference not set to an instance of an object
Cinemachine.Editor.CinemachineVirtualCameraEditor.DrawVirtualCameraGizmos (Cinemachine.CinemachineVirtualCamera vcam, UnityEditor.GizmoType selectionType) (at Library/PackageCache/com.unity.cinemachine@2.6.1 preview.6/Editor/Editors/CinemachineVirtualCameraEditor.cs:553)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)" error message is getting spammed in the Console log on 2020.1 stream
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"
- The "StringComparer.InvariantCultureIgnoreCase.GetHashCode()" returns different Hash Codes for the same word with the only difference being case sensitivity in WebGL
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
Resolution Note (fix version 2.7.1+):
Fix will be available for the next release (after 2.7.1)