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
Comments (1)
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
- ScrollView clips content when under an ancestor that has a filter set
- "Retrieving array element that was out of bounds" error thrown when attempting to remove a column from a Multi-Column List View
- Multi-Column List View horizontal scroll resets to left most position when scrolling vertically
- Floating License is lost for concurrent jobs
- Warning "Failed to insert item" is logged when Assigning Project to Organization's Project in the Project Settings
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)