question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compile error after adding Unity Collections package

See original GitHub issue

After adding Unity Collections pakcage, I got this error

Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(560,27): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(582,27): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(589,28): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(825,22): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)

My platform is iOS.

The second answer of this link explains how to add Unity Collections pakcage

https://forum.unity.com/threads/how-do-i-add-the-collections-package.1138399/

image

Does anyone know how to fix this? Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
supiketcommented, Mar 3, 2022

I solved the issue in the following way:

  1. Moved the com.unity.collections@<your_version> folder from <YourProjectRoot>/Library/PackageCache/ directory to <YourProjectRoot>/Packages/ directory.
  2. Opened the file com.unity.collections@<your_version>/Unity.Collections/xxHash3.cs.
  3. Changed the Common.umul128(...) calls to Unity.Burst.Intrinsics.Common.umul128(...) calls.

The reason for step 1 is that the Library directory is “volatile”, so when I edit the script without applying step 1, step 3 was undone with each Unity recompile.

1reaction
JamesW940516commented, Jul 19, 2023

Thanks!!! @supiket Your solution saved my life. I am wondering that this issue has been fixed officially or not. I could not find any proper solution anywhere. Thanks again!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile error after adding Unity Collections package #76
After adding Unity Collections pakcage, I got this error Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(560 ...
Read more >
Bug - Build/compiler error from Collections
We upgraded our game project from 2019.4 to 2020.3.38 and it's working fine -- except that builds fail, due to a bunch of...
Read more >
Unity built-in Packages Compiler Errors
Try changing system locale to not Arabic Go to Control Panel > Change date, time or number format> Administrative tab> Change system locale...
Read more >
Troubleshooting - Unity's Package Manager
Troubleshooting · Error messages in the Package Manager window · Package Manager missing or window doesn't open · Problems after upgrading Unity to...
Read more >
Entities package giving compile error : r/Unity3D
So I'm trying to setup a 3D project in DOTS and the package com.unity.entities@0.17.0-preview.42 gives me the error:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found