Search Issue Tracker
Fixed
Fixed in 2.10.2, 3.1.2
Votes
0
Found in [Package]
2.10.1
3.1.1
Issue ID
CMCL-1608
Regression
Yes
Cinemachine Camera drifts when having multiple Parent GameObjects in the Project Hierarchy
How to reproduce:
1. Open the attached “IN-83830” Project
2. Locate and open the "Playground" Scene
3. Enter Play mode
4. Locate the "Camera Switcher" GameObject in the Hierarchy and press the "Switch" button in the Inspector window
5. Locate the "Virtual Camera" GameObject in the Project Hierarchy
6. Observe the "Virtual Camera" Transform Position drifting in both the Game window and the Inspector
Expected result: Cinemachine Camera stays in its fixed position after switching into it
Actual result: Cinemachine Camera drifts when having multiple Parent GameObjects in the Project Hierarchy
Reproducible in: 3.1.1(6000.0.19f1, 2022.3.46f1), 2.10.1 (6000.0.19f1, 2022.3.46f1, 2021.3.43f1)
Not reproducible in: 2.10.0 (2020.3.48f1, 2021.3.37f1), 2.6.17 (2020.3.48f1)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
* Ensuring that the Camera object only has a maximum of one Parent GameObject fixes the drift issue
* The issue has been confirmed to be caused by floating-point precision inaccuracies within the Unity Engine when evaluating the Cinemachine camera’s transform.SetPositionAndRotation(transform.position, transform.rotation)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment