Search Issue Tracker
Fixed
Fixed in 6000.0.0b12
Votes
0
Found in
6000.0.0b1
Issue ID
UUM-66233
Regression
No
[UI Builder] Exception thrown when adding an empty selector
Steps to reproduce:
1. Open UI Builder. Add a style sheet to the document.
2. Type in the "Add new selector field", clear the field so its empty and press return
3. Exception is thrown
{noformat}
IndexOutOfRangeException: Index was outside the bounds of the array.
Unity.UI.Builder.BuilderStyleSheets.CreateNewSelector (UnityEngine.UIElements.StyleSheet styleSheet) (at <1e62fa9ecc5949b1888e6e526b2b5fb3>:0)
Unity.UI.Builder.BuilderStyleSheets.OnEnter (UnityEngine.UIElements.KeyDownEvent evt) (at <1e62fa9ecc5949b1888e6e526b2b5fb3>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEvent_TrickleDownCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement element) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToFocusedElementOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.KeyboardEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <946e1335742a4b0ea262e6c117357e7c>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <4e8fd10292474a8fa2f0a5c88b71bcea>:0)
{noformat}
Actual results: No exception
Expected results: Exception is thrown
Reproducible with versions: 6000.0b1
Not reproducible with versions:
Can’t test with versions:
Tested on (OS): Windows 10
Notes:
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment