Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Braza · Dec 30, 2019 at 10:03 AM · editorexception

"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)


Comment
Add comment
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image
3

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image domportera · Sep 08, 2020 at 09:25 PM 0
Share

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.

avatar image squarelover · Dec 02, 2020 at 12:19 PM 0
Share

this callback not gonna work until you remove all empty listeners from the scene object (prefab object)

avatar image
3

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

162 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges