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
- NullReferenceException Occurs When Baking APV with GPU Streaming Enabled
- Scene renders incorrectly when using RenderGraphUtils.AddCopyPass
- [URP] Searchable context menu instantly closes when attempting to open it
- [Multiplayer Center] Hosting Model Doesn't Reset to Recommended When Re-selecting Default Netcode Solution
- Clear Dynamic Data On Build does not clear data after a Clean Build when the Atlas Population Mode is set to "Dynamic" or "Dynamic OS"
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a1