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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Add comment