Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help needed with analytics package errors

Discussion in 'Package Manager' started by jecky111, Jan 25, 2020.

  1. jecky111

    jecky111

    Joined:
    Jun 11, 2016
    Posts:
    17
    Hi,
    I am using unity 2019.2.17f1 and after I import analytics package from package manager everything looks okay. But when I add Analytics event tracker component to my gameobjects I get the following error and the component does not have the dropdown where you can select event type. What I tried: tried to upgrade / downgrade analytics package, tried to stiwch to .net 2 instead of 4 and tried to move to unity 2019.3 too, but nothing resolved this error. Other noteable packages I have in the project is firebase realtime db sdk (+ some unity basic packages). Anyone has any suggestions about how to resolve this?



    ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
    System.Reflection.Assembly.GetTypes () (at <567df3e0919241ba98db88bec4c6696f>:0)
    UnityEngine.Analytics.StandardEventPayloadDrawer.BuildEventTypes () (at /Users/justing/development/analytics-standard-event-sdk/Assets/Services/Analytics/Tracker/Editor/StandardEventPayloadDrawer.cs:378)
    UnityEngine.Analytics.StandardEventPayloadDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean draw) (at /Users/justing/development/analytics-standard-event-sdk/Assets/Services/Analytics/Tracker/Editor/StandardEventPayloadDrawer.cs:49)
    UnityEngine.Analytics.StandardEventPayloadDrawer.GetPropertyHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at /Users/justing/development/analytics-standard-event-sdk/Assets/Services/Analytics/Tracker/Editor/StandardEventPayloadDrawer.cs:412)
    UnityEditor.PropertyDrawer.GetPropertyHeightSafe (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyDrawer.cs:43)
    UnityEditor.PropertyHandler.GetHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:221)
    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:206)
    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)
    UnityEngine.Analytics.AnalyticsEventTrackerEditor.PayloadGUI () (at /Users/justing/development/analytics-standard-event-sdk/Assets/Services/Analytics/Tracker/Editor/AnalyticsEventTrackerEditor.cs:68)
    UnityEngine.Analytics.AnalyticsEventTrackerEditor.OnInspectorGUI () (at /Users/justing/development/analytics-standard-event-sdk/Assets/Services/Analytics/Tracker/Editor/AnalyticsEventTrackerEditor.cs:45)
    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)
     
  2. okcompute_unity

    okcompute_unity

    Joined:
    Jan 16, 2017
    Posts:
    756
    Hi @jecky111,

    This looks like an Analytics specific issue. Can you ask your question in the Unity Analytics forum, please?

    Regards,

    Pascal