Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2017.4.5f1
Issue ID
1052824
Regression
No
Null Reference Exception occurs on editing cloth constraints or collision
Null Reference Exception occurs on editing cloth constraints or collision. Once the exception occurs the editing window doesn't open. Refer the video attached
Steps to reproduce:
1) Create new project > Create empty gameObject.
2) Add cloth component to empty GameObject.
3) Click on Edit Cloth constraint /Cloth self-collision image button and press select in the editing window.
Actual result: Null reference exception occurs and the cloth editing window doesn't open anymore
Expected result: No exception occurs and the cloth editing window works as expected.
Environment:
Windows and Mac
Occurring with:
2018.3.0a3, 2018.2.0b10, 2018.1.0b1, 2017.3.03f1
Workaround : Select any mesh in the mesh renderer so that the errors disappear and then follow step 3 in steps to repro.
Stack Trace
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ClothInspector.SelectionGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:726)
UnityEditor.ClothInspector.ConstraintEditing (UnityEngine.Object unused, UnityEditor.SceneView sceneView) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:1598)
UnityEditor.SceneViewOverlay.WindowTrampoline (Int32 id) (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneViewOverlay.cs:112)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:517)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, Int32 instanceID, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUI.cs:1675)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment