Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Unity.Mathematics no longer in project?

Discussion in '2018.3 Beta' started by OFFICIAL_bryanw, Sep 13, 2018.

  1. OFFICIAL_bryanw

    OFFICIAL_bryanw

    Joined:
    Jul 6, 2018
    Posts:
    36
    I updated from 2018.2 and it looks like scripts that were using Unity.Mathematics no longer compiles properly?
     
  2. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    Solved this by uninstalling the math package. The #using unity.mathematics seems to be hardcoded now.
     
  3. OFFICIAL_bryanw

    OFFICIAL_bryanw

    Joined:
    Jul 6, 2018
    Posts:
    36
    Hmm...

    That did not seem to work for me. manfiest below:

    Code (JavaScript):
    1. {
    2.   "dependencies": {
    3.     "com.unity.analytics": "3.0.9",
    4.     "com.unity.burst": "0.2.4-preview.23",
    5.     "com.unity.collab-proxy": "1.2.9",
    6.     "com.unity.entities": "0.0.12-preview.8",
    7.     "com.unity.incrementalcompiler": "0.0.42-preview.17",
    8.     "com.unity.package-manager-ui": "2.0.0-preview.7",
    9.     "com.unity.textmeshpro": "1.3.0",
    10.     "com.unity.modules.ai": "1.0.0",
    11.     "com.unity.modules.animation": "1.0.0",
    12.     "com.unity.modules.assetbundle": "1.0.0",
    13.     "com.unity.modules.audio": "1.0.0",
    14.     "com.unity.modules.cloth": "1.0.0",
    15.     "com.unity.modules.director": "1.0.0",
    16.     "com.unity.modules.imageconversion": "1.0.0",
    17.     "com.unity.modules.imgui": "1.0.0",
    18.     "com.unity.modules.jsonserialize": "1.0.0",
    19.     "com.unity.modules.particlesystem": "1.0.0",
    20.     "com.unity.modules.physics": "1.0.0",
    21.     "com.unity.modules.physics2d": "1.0.0",
    22.     "com.unity.modules.screencapture": "1.0.0",
    23.     "com.unity.modules.terrain": "1.0.0",
    24.     "com.unity.modules.terrainphysics": "1.0.0",
    25.     "com.unity.modules.tilemap": "1.0.0",
    26.     "com.unity.modules.ui": "1.0.0",
    27.     "com.unity.modules.uielements": "1.0.0",
    28.     "com.unity.modules.umbra": "1.0.0",
    29.     "com.unity.modules.unityanalytics": "1.0.0",
    30.     "com.unity.modules.unitywebrequest": "1.0.0",
    31.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    32.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    33.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    34.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    35.     "com.unity.modules.vehicles": "1.0.0",
    36.     "com.unity.modules.video": "1.0.0",
    37.     "com.unity.modules.vr": "1.0.0",
    38.     "com.unity.modules.wind": "1.0.0",
    39.     "com.unity.modules.xr": "1.0.0"
    40.   },
    41.   "registry": "https://staging-packages.unity.com",
    42.   "testables": [
    43.     "com.unity.collections",
    44.     "com.unity.entities",
    45.     "com.unity.jobs",
    46.     "com.unity.burst",
    47.     "com.unity.mathematics"
    48.   ]
    49. }
    50.  
     
  4. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    All very strange!

    I have this packages installed:
    Untitled-1.jpg

    Under "all packages" in package-manager there is math.12 prev17 installed, but not sure from where its coming.

    Untitled-3.jpg

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.addressables": "0.3.5-preview",
    4.     "com.unity.burst": "0.2.4-preview.30",
    5.     "com.unity.collections": "0.0.9-preview.4",
    6.     "com.unity.entities": "0.0.12-preview.12",
    7.     "com.unity.formats.fbx": "2.0.0-preview",
    8.     "com.unity.incrementalcompiler": "0.0.42-preview.20",
    9.     "com.unity.package-manager-ui": "2.0.0",
    10.     "com.unity.postprocessing": "2.0.12-preview",
    11.     "com.unity.modules.ai": "1.0.0",
    12.     "com.unity.modules.animation": "1.0.0",
    13.     "com.unity.modules.assetbundle": "1.0.0",
    14.     "com.unity.modules.audio": "1.0.0",
    15.     "com.unity.modules.cloth": "1.0.0",
    16.     "com.unity.modules.director": "1.0.0",
    17.     "com.unity.modules.imageconversion": "1.0.0",
    18.     "com.unity.modules.imgui": "1.0.0",
    19.     "com.unity.modules.jsonserialize": "1.0.0",
    20.     "com.unity.modules.particlesystem": "1.0.0",
    21.     "com.unity.modules.physics": "1.0.0",
    22.     "com.unity.modules.physics2d": "1.0.0",
    23.     "com.unity.modules.screencapture": "1.0.0",
    24.     "com.unity.modules.terrain": "1.0.0",
    25.     "com.unity.modules.terrainphysics": "1.0.0",
    26.     "com.unity.modules.tilemap": "1.0.0",
    27.     "com.unity.modules.ui": "1.0.0",
    28.     "com.unity.modules.uielements": "1.0.0",
    29.     "com.unity.modules.umbra": "1.0.0",
    30.     "com.unity.modules.unityanalytics": "1.0.0",
    31.     "com.unity.modules.unitywebrequest": "1.0.0",
    32.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    33.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    34.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    35.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    36.     "com.unity.modules.vehicles": "1.0.0",
    37.     "com.unity.modules.video": "1.0.0",
    38.     "com.unity.modules.vr": "1.0.0",
    39.     "com.unity.modules.wind": "1.0.0",
    40.     "com.unity.modules.xr": "1.0.0"
    41.   },
    42.   "registry": "https://staging-packages.unity.com"
    43. }
    44.  
    In the project folder under \Library\PackageCache there is a version preview 13 cached.
    But as you can see on the image above version.17 is displayed.

    Untitled-4.jpg

    The package manager does not check inconsistences in \Library\PackageCache.

    I uninstalled the math package 012.p17 and reinstalled preview 13. This makes it now work for me.
     
    Last edited: Sep 14, 2018
  5. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    The Mathematics package is a dependency of the Entities package. You can see this if you view the package.json file of the Entities package.

    I agree that this is confusing.
     
  6. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    561
    yeah you need some way to show all installed packages, including indirect dependencies (under Packages/ in project browser? or under Installed Packages with a different icon (and list of packages requiring it))
     
    rz_0lento likes this.
  7. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    Yes, this happen if different teams are not able to update their stuff because of their project complexity and dead line for new builds. But anyway, I thought the entity/burst team leads over the mathematics package.
     
  8. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I couldn't agree more with this. This has always annoyed me.

    I'd also want to see the package dependencies on the package manager along with the other package specific info to fully understand the relations (it's not like there isn't tons of empty space at this part of the menu, so it would fit in just fine). If Unity's UX guys thing it looks bad, at least let advanced users display the extra data here, thank you :)