- Home /
"ArgumentException: method arguments are incompatible" for Analytics Event Tracker parameter
Attempt to add my scene object to Analytics Event Tracker as a parameter to drive dynamic values results in no available fields to select in Editor and immediate exception. What problem could interfere? Untity v2019.2.17
ArgumentException: method arguments are incompatible
System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at <567df3e0919241ba98db88bec4c6696f>:0)
System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure) (at <567df3e0919241ba98db88bec4c6696f>:0)
System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) (at <567df3e0919241ba98db88bec4c6696f>:0)
System.Reflection.MonoProperty.CreateGetterDelegate (System.Reflection.MethodInfo method) (at <567df3e0919241ba98db88bec4c6696f>:0)
System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <567df3e0919241ba98db88bec4c6696f>:0)
UnityEditor.Analytics.TrackableFieldDrawer.GetMemberValue (System.Object target, System.Reflection.MemberInfo member) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:297)
UnityEditor.Analytics.TrackableFieldDrawer.IsValidSubTarget (System.Object target, System.Reflection.MemberInfo member) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:212)
UnityEditor.Analytics.TrackableFieldDrawer.AddMenuItems (UnityEditor.GenericMenu menu, UnityEngine.Object originalTarget, System.Object target, System.String[] validTypes, System.String baseMenuPath, System.Int32 depth) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:198)
UnityEditor.Analytics.TrackableFieldDrawer.AddMenuItems (UnityEditor.GenericMenu menu, UnityEngine.Object originalTarget, System.Object target, System.String[] validTypes, System.String baseMenuPath, System.Int32 depth) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:204)
UnityEditor.Analytics.TrackableFieldDrawer.FieldSelectMenu (UnityEngine.Object target, System.String[] validTypes) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:113)
UnityEditor.Analytics.TrackableFieldDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/TrackableFieldDrawer.cs:76)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6051)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7412)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7407)
UnityEditor.Analytics.ValuePropertyDrawer.ValueGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.Analytics.ValueProperty+PropertyType propertyType, System.String valueType) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/ValuePropertyDrawer.cs:256)
UnityEditor.Analytics.ValuePropertyDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/ValuePropertyDrawer.cs:45)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6051)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7401)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7396)
UnityEditor.Analytics.AnalyticsEventParamDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/AnalyticsEventParamDrawer.cs:46)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6051)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7401)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7396)
UnityEditor.Analytics.AnalyticsEventParamListContainerDrawer.DrawElement (UnityEngine.Rect rect, System.Int32 index, System.Boolean isactive, System.Boolean isfocused) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/AnalyticsEventParamListContainerDrawer.cs:248)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:589)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:414)
UnityEditor.Analytics.ListContainerDrawer.OnGUI (UnityEngine.Rect position) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/ListContainerDrawer.cs:181)
UnityEditor.Analytics.ListContainerDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/ListContainerDrawer.cs:81)
UnityEditor.Analytics.AnalyticsEventParamListContainerDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/AnalyticsEventParamListContainerDrawer.cs:32)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6051)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7401)
UnityEditor.Analytics.StandardEventPayloadDrawer.ParametersGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean draw) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/StandardEventPayloadDrawer.cs:242)
UnityEditor.Analytics.StandardEventPayloadDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean draw) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/StandardEventPayloadDrawer.cs:73)
UnityEditor.Analytics.StandardEventPayloadDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/StandardEventPayloadDrawer.cs:37)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:23)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:139)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:106)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:208)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9362)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9346)
UnityEditor.Analytics.AnalyticsEventTrackerEditor.PayloadGUI () (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/AnalyticsEventTrackerEditor.cs:60)
UnityEditor.Analytics.AnalyticsEventTrackerEditor.OnInspectorGUI () (at /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/AnalyticsEventTrackerEditor.cs:37)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:501)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
Answer by SAQamachi · Aug 02, 2020 at 08:42 PM
I had the same problem, and all I had to do is make another object of whatever element is making this problem then just copy the components from the inspector of the object that is causing the problem and paste it to the new object you made, and it worked, Idk why but it did, just make sure you copy and paste every component from the inspector and paste it into a new one.
I hate that this was the answer for me, but thank you for this answer! I had this issue with an in-game UI Slider, so I just deleted the slider object and made a new one. Duplicating the original object didn't fix the problem, which tells me this is probably a game object - level Unity bug.
this callback not gonna work until you remove all empty listeners from the scene object (prefab object)
Answer by noahternullo · Oct 07, 2020 at 12:35 AM
I was able to fix this issue by removing an empty listener from my slider's OnValueChanged event. However, when I add a new empty listener, it still works fine. I think the issue perhaps was that in another scene, the same object had a listener connected to a scene object that wouldn't be accessible in its current scene.
Answer by pdugan27 · Feb 03, 2020 at 07:30 PM
Was hoping to find an answer! I have a similar issue with 2018.3.6f. Some objects click, some don't under deadline and this is very frustrating. ,Was hoping to find an answer! I have a similar issue with 2018.3.6f. Some objects click, some don't under deadline and this is very frustrating.
Answer by amelkor · Mar 29, 2020 at 07:29 PM
This is possibly the case https://github.com/mono/mono/issues/9033 Just faced the same exception and haven't dove into yet but looks like a bug in Mono?
Answer by husseincheayto · Aug 23, 2020 at 12:50 PM
I had the same issue, it was due to a change of the type of the input variable from "int" to "float" before: public void Test (int number){}
after: public void Test (float number) {}
Solution: find that function in which you changed the variable type and then go to the Gameobject in which it contains the button and reenter that function again.
Your answer
![](https://koobas.hobune.stream/wayback/20220612220741im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to fix the "unityexception : launching ios project via xcode failed" exception ? 0 Answers
Destroying Components from Editor Script Throwing MissingReferenceException 1 Answer
Can I throw an Exception that refers to a gameobject like Debug.Log does? 1 Answer
DirectoryNotFoundException with full existing path... ? How can this be? I need an answer ASAP 1 Answer
No line numbers in stack trace 1 Answer