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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
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)