7ark / BetterEvents-Deprecated

A replacement for UnityEvents that are: better
MIT License
135 stars 13 forks source link

NullReference with specific gameObjects #10

Open rivax95 opened 3 years ago

rivax95 commented 3 years ago

NullReferenceException: Object reference not set to an instance of an object MethodSelector.BuildSelectionTree (Sirenix.OdinInspector.Editor.OdinMenuTree tree) (at Assets/Editor/MethodSelector.cs:56) Sirenix.OdinInspector.Editor.OdinSelector1[T].get_SelectionTree () (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinSelector1[T].SetSelection (T selected) (at <01426cf02d6b496987759788511e04d9>:0) BetterEventDrawer.CreateSelector (UnityEngine.Rect arg) (at Assets/Editor/BetterEventDrawer.cs:121) Sirenix.OdinInspector.Editor.OdinSelector1[T].DrawSelectorDropdown (UnityEngine.Rect rect, UnityEngine.GUIContent btnLabel, System.Func2[T,TResult] createSelector, UnityEngine.GUIStyle style) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinSelector1[T].DrawSelectorDropdown (UnityEngine.Rect rect, System.String btnLabel, System.Func2[T,TResult] createSelector, UnityEngine.GUIStyle style) (at <01426cf02d6b496987759788511e04d9>:0) BetterEventDrawer.DrawPropertyLayout (UnityEngine.GUIContent label) (at Assets/Editor/BetterEventDrawer.cs:33) Sirenix.OdinInspector.Editor.OdinDrawer.CallNextDrawer (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1[T].DrawPropertyLayout (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinDrawer.CallNextDrawer (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.Drawers.FixUnityNullDrawer1[T].DrawPropertyLayout (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinDrawer.CallNextDrawer (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.Drawers.ReferenceDrawer1[T].DrawPropertyLayout (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinDrawer.CallNextDrawer (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1[T].DrawPropertyLayout (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.OdinDrawer.DrawProperty (UnityEngine.GUIContent label) (at <01426cf02d6b496987759788511e04d9>:0) Sirenix.OdinInspector.Editor.InspectorProperty.Draw (UnityEngine.GUIContent defaultLabel) (at <01426cf02d6b496987759788511e04d9>:0) Rethrow as OdinPropertyException: This error occurred while being drawn by Odin. Current IMGUI event: Used Odin Property Path: eventsByIDB.{"DespertarEnemigoPesca"}.Event.Events.$0 Odin Drawer Chain:

PropertyContextMenuDrawer ReferenceDrawer FixUnityNullDrawer NullableReferenceDrawer BetterEventDrawer CompositeDrawer. UnityEngine.Debug:LogException(Exception) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) Sirenix.OdinInspector.Editor.Drawers.CollectionDrawer1:DrawItem(InspectorProperty, DragHandle) Sirenix.OdinInspector.Editor.Drawers.CollectionDrawer1:DrawItems() Sirenix.OdinInspector.Editor.Drawers.CollectionDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.FixUnityNullDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) BetterEventListDrawer:DrawPropertyLayout(GUIContent) (at Assets/Editor/BetterEventListDrawer.cs:10) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) Sirenix.OdinInspector.Editor.Drawers.CompositeDrawer:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1:DrawField(GUIContent) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.FixUnityNullDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) Sirenix.OdinInspector.Editor.Drawers.DictionaryDrawer3:DrawElements(IPropertyValueEntry1, GUIContent) Sirenix.OdinInspector.Editor.Drawers.DictionaryDrawer3:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.FixUnityNullDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferenceDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(GUIContent) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw() Sirenix.OdinInspector.Editor.Drawers.UnityObjectRootDrawer`1:DrawPropertyLayout(GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(GUIContent) Sirenix.OdinInspector.Editor.InspectorProperty:Draw(GUIContent) Sirenix.OdinInspector.Editor.PropertyTree:DrawProperties() Sirenix.OdinInspector.Editor.PropertyTree:Draw(Boolean) Sirenix.OdinInspector.Editor.OdinEditor:DrawTree() Sirenix.OdinInspector.Editor.OdinEditor:DrawOdinInspector() Sirenix.OdinInspector.Editor.OdinEditor:OnInspectorGUI() UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)