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
- Export as JSON and CSV options missing from the Quick Search save feature
- Crash on IMGUI::GUIWindow::OnGUI when rendering scene view window in play mode in a specific project
- "FileNotFoundException" & "IOException" thrown when adding "User" Index after deleting "Assets" Index in Search Index Manager window
- Camera Background Solid Color does not Render
- Raytracing renders artefacts and performance drops when switching Volumes at runtime
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a1