Reputation: 786
I have installed Unity on linux and everithing seems to work as expected when developing games in the standard model. However when I set up a project for ECS development, by installing the following packages:
I get the following error when creating a blank 2D project:
Library/PackageCache/[email protected]/Runtime/TransformAccessJob.cs(196,62): error CS1061: 'NativeHashMap<int, TransformAccessJob.TransformData>' does not contain a definition for 'Length' and no accessible extension method 'Length' accepting a first argument of type 'NativeHashMap<int, TransformAccessJob.TransformData>' could be found (are you missing a using directive or an assembly reference?)
Unity version: 2019.3.14f1 Personal
Anyone has any idea what could be the issue?
Upvotes: 1
Views: 1555
Reputation: 45
A temporary fix if you want to use the animation package is to change m_TransformData.Length
to m_TransformData.Count()
in the line specified in the error (TransformAccessJob.cs
line 196).
Upvotes: 0
Reputation: 56
Removing the 2D Animation package is not a valid option for me since I am using the 2D skeleton animation functionalities it provides.
This problem seems to result from the API change with Jobs 0.2.10. Downgrading Jobs to 0.2.9 solved this problem for me.
Upvotes: 4