Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
2.7.9
2.8.0-pre.1
Issue ID
CMCL-1224
Regression
No
Cinemachine Virtual Camera Transform and FOV are changed when recompiling scripts
How to reproduce:
1. Open the attached project “IN_15838.zip”
2. Open the “SampleScene” Scene in Scenes and observe “CM vcam1” FOV
3. Enter Play Mode
4. Select “CM vcam1” and observe in the Inspector Transform section
5. Reload the scripts (change something in the “NewBehaviourScript” script and save)
6. Observe the “CM vcam1” FOV and Transform section in the Inspector when “CM vcam1” GameObject is selected
Expected result: Transform and FOV don’t change after the script reload
Actual result: Transform values have been changed and FOV in the Scene View visibly changed
Reproducible with: Cinemachine 2.7.9 (2021.1.0b12), 2.8.0-pre.1 (2021.2.0a19)
Not reproducible with: Cinemachine 2.8.0-pre.1 (2021.2.0a20), 2.8.6 (2021.3.10f1), 2.8.9 (2022.1.17f1), 2.9.0-pre.6 (2022.2.0b8, 2023.1.0a11)
Couldn’t test with: 2020.3.39f1, 2021.1.0a1 - 2021.1.0b11 (due to compiler error)
Reproducible on: Windows 10 Pro
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
- Unity crashes during the scene template selection in the "Inspector" tab
- [Android] [iOS] [UnityWebRequest] Requests with "UnityWebRequest" are open for SSL Proxying
- SetWindowsHookEx does not prevent Windows key input when Editor or Player Window is focused and Active Input Handling is set to “Input System Package (New)” or “Both”
- Crash on GetEffectiveBc7TextureCompressor() when loading and unloading all Assets in the Project
- Terrain Masks do not ignore the mipmap limit
Resolution Note:
I cannot reproduce the issue you mention after script reload (in Cinemachine 2.8.9 or 2.9.2).
You mention in the bug report that the bug is:
Reproducible with: Cinemachine 2.7.9 (2021.1.0b12), 2.8.0-pre.1 (2021.2.0a19), and
Not reproducible with: Cinemachine 2.8.0-pre.1 (2021.2.0a20), 2.8.6 (2021.3.10f1), 2.8.9 (2022.1.17f1), 2.9.0-pre.6 (2022.2.0b8, 2023.1.0a11)
Cinemachine 2.7 is not supported anymore, so if you are using that, please update your Cinemachine to the latest 2.8 or 2.9 versions.