Search Unity

Analytics.CustomEvent return calls

Discussion in 'Unity Analytics' started by Mr_Jigs, Sep 12, 2015.

  1. Mr_Jigs

    Mr_Jigs

    Joined:
    Apr 18, 2015
    Posts:
    69
    In order to sort my own mistakes from issues at the analytics service end I would like to start using the return calls I see mentioned in several places. However, I can not find any documentation and my own inexperience with C# has me stymied for the moment.

    I would expect something like:

    returnValue = Analytics.CustomEvent("gameOver", new Dictionary<string, object>
    {
    { "potions", totalPotions },
    { "coins", totalCoins }
    });

    A returnValue of 0 would be everything is just hunky-dory and any other value would indicate a problem. But there seem to be two parts to a return value. I see an int value being mentioned like 500 and also an associated string with a more human understandable content.

    Is returnValue supposed to be int and if so where do I pull the associated string info from?

    Thanks in advance everyone.

    Mr. Jigs
     
  2. khan-amil

    khan-amil

    Joined:
    Mar 29, 2012
    Posts:
    206
    returnValue here is actually an enum, so an int under the hood, with a human readable name.