SolidAlloy / ExtEvents

A better replacement for UnityEvents
Other
123 stars 13 forks source link

Inspector controls doesn't work in 2022+ #12

Open dragon122 opened 1 year ago

dragon122 commented 1 year ago

Any actions with the "+s"\"+i" buttons in the inspector are ignored in 2022LTS\2023

hackerG7 commented 1 month ago

Same here

wozhdal commented 4 days ago

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.