Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2021.2.0a17
2022.1
Issue ID
1371050
Regression
Yes
NullReferenceException errors are thrown after exiting Play mode when "Edit cloth constraints" is enabled on a Cloth Component
How to reproduce:
1. Open the attached project "clothBug"
2. Open the Scene "SampleScene" (Assets/Scenes/SampleScene.unity)
3. In the Hierarchy window, select the "Cylinder" GameObject
4. In the Inspector window, press the "Edit cloth constraints" button under the Cloth Component
5. Enter, then exit Play mode and observe the Console window
Expected result: No errors are shown in the Console
Actual result: NullReferenceException errors are shown in the Console
Reproducible with: 2021.2.0a17, 2021.2.0b15, 2022.1.0a11
Not reproducible with: 2019.4.31f1, 2020.3.19f1, 2021.1.23f1, 2021.2.0a16
Errors in the Console:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ClothInspector+SceneViewClothConstraintsOverlay.OnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:1949)
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
- Shader Variant Collection Asset UI is hard to read when multiple Shaders and keywords are added
- Resetting Quality Levels in Project Settings adds new Quality Levels instead of restoring default ones
- UI builder uxml files retain reference to non-existing assembly definition file when a assembly definition file is deleted
- Animator Entry and Base Layer Transitions links to the documentation aren’t working
- Caret doesn't appear when clicking the Input Field on secondary monitor
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a1