Search Issue Tracker
Fixed in 5.3.6
Votes
3
Found in
5.3.2p1
Issue ID
766771
Regression
No
NullReferenceException when deleting object with 2D Rect Mask component from scene
Steps to reproduce:
1. Open attached project "766771.zip"
2. Open scene "repro"
3. In Hierarchy, select "GameObject > GameObject"
4. Notice that it has "2D Rect Mask" and "Image" components
5. Delete selected GameObject
6. Notice NullReferenceException is thrown in console:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.RectangularVertexClipper.GetCanvasRect (UnityEngine.RectTransform t, UnityEngine.Canvas c) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Culling/RectangularVertexClipper.cs:11)
Reproducible: 5.2.4p1, 5.3.0p1, 5.4.0b4
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
- TreeView Child display toggle styling becomes reversed when clicking and dragging it
- Null is returned when using FocusOutEvent.relatedTarget
- Unity_BaseInstanceID is always zero when rendering multiple meshes and instancing with the same buffer
- UI Document button's text does not resize relatively when size in percentage (%) is used
- Event.current.mousePosition has an offset of 1px along the y-axis in WebGL build when the mouse button is released
vandalgames
Jun 30, 2016 22:31
i still have this issue with 5.3.5
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.RectangularVertexClipper.GetCanvasRect (UnityEngine.RectTransform t, UnityEngine.Canvas c) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Culling/RectangularVertexClipper.cs:11)
UnityEngine.UI.RectMask2D.get_canvasRect () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/RectMask2D.cs:47)
UnityEngine.UI.Clipping.FindCullAndClipWorldRect (System.Collections.Generic.List`1 rectMaskParents, System.Boolean& validRect) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Culling/Clipping.cs:15)
UnityEngine.UI.RectMask2D.PerformClipping () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/RectMask2D.cs:115)
UnityEngine.UI.ClipperRegistry.Cull () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Culling/ClipperRegistry.cs:34)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/CanvasUpdateRegistry.cs:138)
UnityEngine.Canvas.SendWillRenderCanvases () (at C:/buildslave/unity/build/artifacts/generated/common/modules/UI/UICanvasBindings.gen.cs:195)