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.

Question New Analytics package on Unity 2020.1

Discussion in 'Unity Analytics' started by olejuer, Jul 12, 2022.

  1. olejuer

    olejuer

    Joined:
    Dec 1, 2014
    Posts:
    204
    Hi,

    I would love to upgrade to the new analytics package, however, I am facing a problem.
    My project is on the (non-LTS) Unity 2020.1.17f1 version.
    On that version, unity.services.analytics 4.x does not compile, only version 1.0.5 does.

    Does the version 1.0.5 already talk to the new Analytics services?

    Is there a chance we could have an analytics package that is compatible with 2020.1.17f1?

    I understand that you will not be able to test this on all non-LTS versions, so this is probably a no...
    But it's only a check for certain enum values of RuntimePlatform and it does work on 2019.4, so it would probably be rather "easy to do".

    Can I maybe modify the package and fix the issue myself?

    For context: I cannot upgrade my project because of a severe loss of performance on Android VR (Quest 2) for all newer Unity versions. If there is no solution to this, I will have to downgrade to Unity 2019.4 LTS, but I'd rather not.

    Thank you!
    Ole
     
  2. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    104
    Hi Ole,

    The minimum version that is supported is 2019.4.

    You can add the package yourself to the manifest.
    "com.unity.services.analytics": "4.0.1"


    The manifest can be found in YourProjectFolder > Packages

    Add the code snippet like so:

    upload_2022-7-12_10-32-46.png

    You can also find the code snippets in the Packages and SDK Download Center.

    upload_2022-7-12_10-34-28.png

    There is also instruction on how to install a package from the package manager.

    I hope this helps.
     
    ogonommo likes this.
  3. olejuer

    olejuer

    Joined:
    Dec 1, 2014
    Posts:
    204
    Thank you, @Julian-Unity3D

    I do not have trouble installing packages. On Unity 2019.4 everything is fine as well as on later LTS versions. On 2020.1.17f1 however, the package does not compile. If I were to report a bug ticket, it would certainly be denied because 2020.1 is not an LTS version. Thus my questions.

    Cheers
    Ole
     
  4. olejuer

    olejuer

    Joined:
    Dec 1, 2014
    Posts:
    204
    upload_2022-7-12_14-26-4.png

    'RuntimePlatform.GameCoreXboxOne' exists in 2019.4, but not in 2020.1
     
  5. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    104
    I have just tested this myself and can confirm you are indeed correct regarding the error. I will investigate this further for you and get back to you once I have more answers.
     
    olejuer likes this.
  6. olejuer

    olejuer

    Joined:
    Dec 1, 2014
    Posts:
    204
    I have also sent in a bug report (IN-10010), because it was very quickly done.
    Thanks for your support!
     
  7. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    104
    As you have pointed out, because you're not using an LTS version, so occasionally bugs will slip through.

    We can't offer any immediate fixes and can only suggest that you either upgrade to 2020.3 or downgrade to 2019.4.40f1.

    All the best.