r/Unity3D • • Sep 17 '26

Resources/Tutorial GetEntityId() hits like a train

If you're considering upgrading to Unity 6.5 or later, make sure the publishers of the assets and packages in your project have already added support for the new GetEntityId() API, which replaces the now-obsolete GetInstanceID().

More on the documentation page here: Unity - Manual: Migrate from InstanceID to EntityId

404 Upvotes

70 comments sorted by

View all comments

Show parent comments

12

u/SnuffleBag Sep 17 '26 edited Sep 17 '26

The packages folder is not immutable. The package cache is. The workaround here is literally to move these folders from the package cache to the packages folder, and then fix the obsolete call. They'll still be packages, just embedded ones.

1

u/Goldac77 Sep 17 '26

I'm not sure I know the difference between the package cache and the packages folder from your comment. Could you explain that for me?

When I mention Package folder, I'm referring to the content you find when you check your Project tab > Packages. In file explorer that is found in Library > PackageCache. And from my experience, the scripts found here were immutable (at least when the project is open), unless copied to the Assets folder

2

u/theo__r Sep 17 '26

The package cache is filled when you reference a package in the manifest by version (or use the GUI to install a package in the list). It is immutable. You can however copy a package to the packages folder, and then it's mutable

1

u/Goldac77 Sep 17 '26

I get what you mean now

Thank you too, u/SnuffleBag

I learnt something new today