Search Issue Tracker
Fixed in 2.4.0-preview.6
Votes
0
Found in [Package]
2.3.4
Issue ID
1192402
Regression
No
[Cinemachine] NullReferenceException error is thrown on enabling "Avoid Obstacle checkbox" in CinemachineCollider preset asset
NullReferenceException is thrown and properties disappear on enabling "Avoid Obstacle checkbox" in CinemachineCollider preset asset.
Steps to repro:
1. Create a new Project.
2. Windows > Package Manager > Install Cinemachine package 2.3.4.
3. Cinemachine > Create Virtual Camera > Add Extension to Cinemachine Collider.
4. Create CinemachineCollider preset asset.
5. Enable "Avoid Obstacle checkbox" in CinemachineCollider preset asset.
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.Editor.CinemachineColliderEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.cinemachine@2.3.3/Editor/Editors/CinemachineColliderEditor.cs:34)
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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note (fix version 2.4.0-preview.6):
added null check in inspector