- Home /
collections package error
Hi there, hope you all having a good day,
My problem is; I've decided to install burst and collections packages in order to improve performance, because without these packages as you know 2d rig animations are causing problem, for example if I have 2 or 3 enemies in the scene the fps drops to 10-20 which is not cool.
So, I've installed burst and collections but there is a problem with the "collections" package, I am having this error;
Library\PackageCache\com.unity.2d.animation@4.2.2\Runtime\TransformAccessJob.cs(196,62): error CS1061: 'NativeHashMap' does not contain a definition for 'Length' and no accessible extension method 'Length' accepting a first argument of type 'NativeHashMap' could be found (are you missing a using directive or an assembly reference?)
I've searched for it and couldn't solve my problem, I really hope someone here can help me. I've been working on my 2d platformer game all alone myself for about 7-8 months and I got stucked because of this problem, for 2 days I've been trying to figure it out, thanks in advance for anyone who can help me!
My unity version: 2019.4.3f1
Answer by dogukanerdem000 · Aug 10, 2020 at 08:13 AM
Okay I've solved the issue by installing "preview.3 - 0.7.1" version of the collections package,
If you're not using "Unity 2019.3.12f1+", you can use collections with the version I've mentioned above, because preview.6 - 0.9.0 only works with Unity 2019.3.12f1+.
Yeah they have a TON of bugs in the new package manager. They basically have ruined the entire system.