Search Issue Tracker
Duplicate
Votes
0
Found in
2019.2.0a11
Issue ID
1143398
Regression
Yes
[2D] NullReferenceException on enabling Custom Range property from Sprite Mask
Editor throws NullReferenceException on enabling Custom Range property from Sprite Mask for the first time.
Steps to Reproduce:
1. Create a new project
2.Hierarchy > 2D Object > Sprite Mask > Enable Custom Range
Note:
1. Custom Range Property was not enabling through keyboard shortcut (Space) mentioned in BugID - 1136216 with Unity 2019.2.0a10 and earlier versions till 2019.1.0a5
2. Refer attached video.
Actual Result:
NullReferenceException on enabling Custom Range property
Expected Result:
Custom Range property is enabled without any errors.
Reproducible on:
2019.2.0a11
Works fine on:
2019.2.0a10, 2019.1.0b10
Environment:
Windows and MacOS
Error Details:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUIUtility.get_currentViewWidth () (at <02b648b65c8c46d49560e1c1b575cd2a>:0)
UnityEditor.EditorGUIUtility.CalcContextWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1064)
UnityEditor.EditorGUIUtility.get_contextWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1086)
UnityEditor.EditorGUIUtility.get_labelWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1100)
UnityEditor.EditorGUILayout.get_kLabelFloatMinW () <0x2667d454530 + 0x00052> in <02b648b65c8c46d49560e1c1b575cd2a>:0
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9376)
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9370)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:206)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9355)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9344)
UnityEditor.SpriteMaskEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Modules/SpriteMaskEditor/Editor/Managed/SpriteMaskEditor.cs:80)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:479)
UnityEditor.UIElements.Tooltip:SetTooltip(Single, Single)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1145010