Open dragon122 opened 1 year ago
Same here
same (2022.3.30f1)
found something : when hit +i or +s, remove button is called at the same time. i tried to remove the remove button and +i and +s show a new item as planned.
But, when trying to add a method, another issue appear, the dropdown is empty and this error pop up:
System.NullReferenceException: Object reference not set to an instance of an object bool UnityEngine.GUI.DoControl(Rect position, int id, bool on, bool hover, GUIContent content, GUIStyle style) bool UnityEngine.GUI.DoButton(Rect position, int id, GUIContent content, GUIStyle style) bool UnityEngine.GUI.Button(Rect position, int id, GUIContent content, GUIStyle style) x 2 bool SolidUtilities.GUIHelper.CloseButton(Rect buttonRect) in ./Library/PackageCache/com.solidalloy.util@1.40.0/Runtime/Helpers/GUIHelper.cs:26 string UnityDropdown.Editor.DropdownMenu.DrawSearchField(Rect innerToolbarArea, string searchText) in ./Library/PackageCache/com.solidalloy.unity-dropdown@1.2.0/Editor/DropdownMenu.cs:211
I tried to add this pull request of dropdown supporting unity 2022: https://github.com/SolidAlloy/UnityDropdown/pull/3/files#diff-81cda7c4db1f47564e3c1eea4b7178c037137e20216f1920286404c139cb0a90
i tried to correct the error at GUIHelper.cs:26 with this modification : return GUI.Button(buttonRect, GUIContent.none, new GUIStyle()); and the dropdown seems now to work.
Any actions with the "+s"\"+i" buttons in the inspector are ignored in 2022LTS\2023