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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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)