I updated from 2018.2 and it looks like scripts that were using Unity.Mathematics no longer compiles properly?
Solved this by uninstalling the math package. The #using unity.mathematics seems to be hardcoded now.
Hmm…
That did not seem to work for me. manfiest below:
{
"dependencies": {
"com.unity.analytics": "3.0.9",
"com.unity.burst": "0.2.4-preview.23",
"com.unity.collab-proxy": "1.2.9",
"com.unity.entities": "0.0.12-preview.8",
"com.unity.incrementalcompiler": "0.0.42-preview.17",
"com.unity.package-manager-ui": "2.0.0-preview.7",
"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"
},
"registry": "https://staging-packages.unity.com",
"testables": [
"com.unity.collections",
"com.unity.entities",
"com.unity.jobs",
"com.unity.burst",
"com.unity.mathematics"
]
}
All very strange!
I have this packages installed:
Under “all packages” in package-manager there is math.12 prev17 installed, but not sure from where its coming.
{
"dependencies": {
"com.unity.addressables": "0.3.5-preview",
"com.unity.burst": "0.2.4-preview.30",
"com.unity.collections": "0.0.9-preview.4",
"com.unity.entities": "0.0.12-preview.12",
"com.unity.formats.fbx": "2.0.0-preview",
"com.unity.incrementalcompiler": "0.0.42-preview.20",
"com.unity.package-manager-ui": "2.0.0",
"com.unity.postprocessing": "2.0.12-preview",
"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"
},
"registry": "https://staging-packages.unity.com"
}
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.
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.
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.
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))
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.
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