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
- Multiple VFX assets cannot be opened in one go
- Rectangle Shape Area Light generates a circle around the rectangle shape
- Action can't be undone after changing the base Controller on the Animator Controller
- The Axes Gizmo is wiggling around when moving around the Scene View with enabled Physical Camera and Isometric View
- The script can be dragged and dropped before it is compiled
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a1