Search Unity

PostProcessing v2 cross-referencing Analytics package?

Discussion in 'Image Effects' started by mcarriere, Oct 9, 2018.

  1. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    We're trying to create a base project for our team, and by default we didn't want to include the Unity Analytics package, but did want the PostProcessing package included.

    In doing so, we're getting the following message:

    /Users/michael/Library/Unity/cache/packages/packages.unity.com/com.unity.postprocessing@2.0.14-preview/PostProcessing/Runtime/PostProcessLayer.cs(9,39): error CS1070: The type `UnityEngine.XR.XRSettings' has been forwarded to an assembly that is not referenced. Enable the built in package 'Unity Analytics' in the Package Manager window to fix this error.​
     
  2. MatthieuPr

    MatthieuPr

    Joined:
    May 4, 2017
    Posts:
    56
    I had the same error and trying to get it to work was very annoying, what I can tell you is that the error is within Unity analytics package.

    If you are able to open Package manager, go to Analytics Library and change version to be 3.0.5

    you can also manually change that from the manifest.json
    change
    "com.unity.analytics": "3.0.9",
    to
    "com.unity.analytics": "3.0.5",

    I also recommend to AVOID 3.0.11 that version doesn't even compile (Dataprivacy gives errors on Unity.Analytics.Analytics... so that version is worse than 3.0.9)
     
  3. MatthieuPr

    MatthieuPr

    Joined:
    May 4, 2017
    Posts:
    56
    this is the manifest I am using and got project to compile at least:


    {
    "dependencies": {
    "com.unity.analytics": "3.0.9",
    "com.unity.collab-proxy": "1.2.9",
    "com.unity.package-manager-ui": "2.0.0-preview.7",
    "com.unity.purchasing": "2.0.1",
    "com.unity.textmeshpro": "1.3.0",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    }
    }
     
  4. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    To further clarify our bug, our issue was caused by _removing_ the analytics package, not having the wrong version.
     
  5. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
  6. MatthieuPr

    MatthieuPr

    Joined:
    May 4, 2017
    Posts:
    56
    Can you write down what you have in your manifest?
    I have made small test project and I have been able to remove Unity Analytics while having PostProcessing package enabled without getting the error.

    manifest:

    Code (JavaScript):
    1. {
    2.   "dependencies": {
    3.     "com.unity.package-manager-ui": "2.0.2",
    4.     "com.unity.postprocessing": "2.0.16-preview",
    5.     "com.unity.textmeshpro": "1.3.0",
    6.     "com.unity.modules.ai": "1.0.0",
    7.     "com.unity.modules.animation": "1.0.0",
    8.     "com.unity.modules.assetbundle": "1.0.0",
    9.     "com.unity.modules.audio": "1.0.0",
    10.     "com.unity.modules.cloth": "1.0.0",
    11.     "com.unity.modules.director": "1.0.0",
    12.     "com.unity.modules.imageconversion": "1.0.0",
    13.     "com.unity.modules.imgui": "1.0.0",
    14.     "com.unity.modules.jsonserialize": "1.0.0",
    15.     "com.unity.modules.particlesystem": "1.0.0",
    16.     "com.unity.modules.physics": "1.0.0",
    17.     "com.unity.modules.physics2d": "1.0.0",
    18.     "com.unity.modules.screencapture": "1.0.0",
    19.     "com.unity.modules.terrain": "1.0.0",
    20.     "com.unity.modules.terrainphysics": "1.0.0",
    21.     "com.unity.modules.tilemap": "1.0.0",
    22.     "com.unity.modules.ui": "1.0.0",
    23.     "com.unity.modules.uielements": "1.0.0",
    24.     "com.unity.modules.umbra": "1.0.0",
    25.     "com.unity.modules.unityanalytics": "1.0.0",
    26.     "com.unity.modules.unitywebrequest": "1.0.0",
    27.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    28.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    29.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    30.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    31.     "com.unity.modules.vehicles": "1.0.0",
    32.     "com.unity.modules.video": "1.0.0",
    33.     "com.unity.modules.vr": "1.0.0",
    34.     "com.unity.modules.wind": "1.0.0",
    35.     "com.unity.modules.xr": "1.0.0"
    36.   }
    37. }