- Home /
Ui Builder error
This compiler error gets thrown each time I click on an item in the Hierarchy. Latterly every time I click on a diff Visual Element, txt or anything ion the Hierarchy, I get this error.
When i click on error it takes me to Unity code Script "PopupField"
Compiler Error :
ArgumentException: Value is not present in the list of possible values UnityEditor.UIElements.PopupField`1[T].SetValueWithoutNotify (T newValue) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Editor/Controls/PopupField.cs:78) Unity.UI.Builder.MultiTypeField.SetTypePopupValueWithoutNotify (System.Type type) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Utilities/MultiTypeField/MultiTypeField.cs:83) Unity.UI.Builder.BuilderInspectorStyleFields.RefreshStyleField (System.String styleName, UnityEngine.UIElements.VisualElement fieldElement) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/Inspector/BuilderInspectorStyleFields.cs:724) Unity.UI.Builder.BuilderInspectorLocalStyles.Refresh () (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/Inspector/BuilderInspectorLocalStyles.cs:173) Unity.UI.Builder.BuilderInspector.RefreshUI () (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/Inspector/BuilderInspector.cs:470) Unity.UI.Builder.BuilderInspector.SelectionChanged () (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/Inspector/BuilderInspector.cs:517) Unity.UI.Builder.BuilderSelection.NotifyOfSelectionChange (Unity.UI.Builder.IBuilderSelectionNotifier source) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/BuilderSelection.cs:292) Unity.UI.Builder.BuilderSelection.AddToSelection (Unity.UI.Builder.IBuilderSelectionNotifier source, UnityEngine.UIElements.VisualElement ve, System.Boolean undo, System.Boolean sort) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/BuilderSelection.cs:187) Unity.UI.Builder.BuilderSelection.AddToSelection (Unity.UI.Builder.IBuilderSelectionNotifier source, UnityEngine.UIElements.VisualElement ve) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/BuilderSelection.cs:171) Unity.UI.Builder.BuilderExplorer.ElementSelectionChanged (System.Collections.Generic.List`1[T] elements) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Builder/Explorer/BuilderExplorer.cs:139) Unity.UI.Builder.ElementHierarchyView.OnSelectionChange (System.Collections.Generic.IEnumerable`1[T] items) (at Library/PackageCache/com.unity.ui.builder@1.0.0-preview.11/Editor/Utilities/ElementHierarchyView/ElementHierarchyView.cs:537) UnityEngine.UIElements.TreeView.OnSelectionChange (System.Collections.Generic.IEnumerable`1[T] selectedListItems) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/TreeView.cs:453) UnityEngine.UIElements.ListView.NotifyOfSelectionChange () (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:1270) UnityEngine.UIElements.ListView.SetSelectionInternal (System.Collections.Generic.IEnumerable`1[T] indices, System.Boolean sendNotification) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:1260) UnityEngine.UIElements.ListView.SetSelection (System.Collections.Generic.IEnumerable`1[T] indices) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:1238) UnityEngine.UIElements.ListView.SetSelection (System.Int32 index) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:1229) UnityEngine.UIElements.ListView.DoSelect (UnityEngine.Vector2 localPosition, System.Int32 clickCount, System.Boolean actionKey, System.Boolean shiftKey) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:1068) UnityEngine.UIElements.ListView.OnPointerDown (UnityEngine.UIElements.PointerDownEvent evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Controls/ListView.cs:988) UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/EventCallback.cs:64) UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/EventCallbackRegistry.cs:341) UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/EventHandler.cs:147) UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/IEventDispatchingStrategy.cs:147) UnityEngine.UIElements.PointerEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/PointerEventDispatchingStrategy.cs:21) UnityEngine.UIElements.PointerEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Events/PointerEventDispatchingStrategy.cs:13) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/EventDispatcher.cs:373) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/EventDispatcher.cs:336) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/EventDispatcher.cs:216) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/Panel.cs:411) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/UIElementsUtility.cs:466) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/UIElementsUtility.cs:209) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/UIElementsUtility.cs:74) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/UIElementsUtility.cs:28) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at :0)