Search Issue Tracker
Fixed in 2.4.0-preview.6
Votes
0
Found in [Package]
2.3.4
Issue ID
1192414
Regression
No
[Cinemachine] NullReferenceException error is thrown on selecting CinemachineFreeLook camera preset asset
NullReferenceException error is thrown on selecting CinemachineFreeLook camera preset asset.
It also throws error on changing any values in preset asset.
Steps to repro:
1. Create a new Project.
2. Windows > Package Manager > Install Cinemachine package 2.3.4.
3. Cinemachine > Create FreeLook Camera.
4. Create CinemachineFreeLookpreset asset.
5. Select CinemachineFreeLookpreset asset in the project view.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible in Package Version: 2.3.4, 2.3.3.
Tested in Unity Version:
2020.1.0a9, 2019.3.0b7, 2019.2.0f1.
Environment:
Windows 10 & Mac 10.14.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
Cinemachine.CinemachineFreeLook.UpdateRigCache () (at library/packagecache/com.unity.cinemachine@2.3.4/runtime/behaviours/cinemachinefreelook.cs:546)
Cinemachine.CinemachineFreeLook.GetRig (System.Int32 i) (at library/packagecache/com.unity.cinemachine@2.3.4/runtime/behaviours/cinemachinefreelook.cs:157)
Cinemachine.CinemachineFreeLookEditor.UpdateRigEditors () (at library/packagecache/com.unity.cinemachine@2.3.4/editor/editors/cinemachinefreelookeditor.cs:97)
Cinemachine.CinemachineFreeLookEditor.OnInspectorGUI () (at library/packagecache/com.unity.cinemachine@2.3.4/editor/editors/cinemachinefreelookeditor.cs:67)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass54_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
Resolution Note (fix version 2.4.0-preview.6):
Presets are not supported for this behaviour