Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Maybe need better feedback when CustomEvent fails?

Discussion in 'Unity Analytics' started by skullthug, Apr 12, 2015.

  1. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    198
    Currently ran into a situation where certain CustomEvents weren't appearing- not in the Validate data view nor after several days of waiting for processing.

    Since the dict formatting it requests is <string, object>, someone was trying to pass it a string and a enum. Never saw any errors in the console so I assumed everything was fine, however the entire event data just simply never shows up. Once we converted the enum.ToString() it finally began reporting it.

    So yeah, some sort of error or feedback what type of objects are truly acceptable would be good and would save some time and guesswork. Super thankful you guy's have that Validate data view.
     
  2. markychoi

    markychoi

    Unity Technologies

    Joined:
    Aug 4, 2014
    Posts:
    40
    Hi skullthug,

    Thanks for bringing this up! We actually became aware of this recently as well. As you already pointed out, you'll have to do the manual conversion of enum to string - i.e, call ToString() - on the enum. In the near future, we'll push out fixes to the SDK to do the conversion automatically for you. We're also working to add clearer language to the integration guides on this point as well. Sorry for any trouble and thanks again for your feedback.
     
    skullthug likes this.