Search Issue Tracker

Won't Fix

Votes

44

Found in [Package]

1.0.0

Issue ID

ECSB-124

Regression

Yes

"Non-invocable member cannot be used like a method" 2D Animation package error when the Entities package is installed

Package: Entity Component System (ECS)

-

Reproduction steps:
1. Open the “2DAnimationBug“ project
2. Observe the Console

Expected result: no errors
Actual result: “Library/PackageCache/com.unity.2d.animation@9.0.1/Runtime/TransformAccessJob.cs(165,62): error CS1955: Non-invocable member 'NativeHashMap<int, TransformAccessJob.TransformData>.Count' cannot be used like a method.” error

Not reproduced in:
* 2020.3.42f1 + Entities 0.50.1-preview.2 + 2D Animation 5.2.6
* 2021.3.14f1 + Entities 0.51.1-preview.21 + 2D Animation 7.0.9

Reproduced in:
* 2022.2.0b8 + Entities 1.0.0-exp.8 + 2D Animation 9.0.0-pre.3
* 2022.2.0b14 + Entities 1.0.0-exp.12 + 2D Animation 9.0.1
* 2023.1.0a19 + Entities 1.0.0-exp.12 + 2D Animation 10.0.0-pre.1

Reproduced using: macOS Monterey 12.0.1 (Intel)

Note: 2023.1 has an additional “Library/PackageCache/com.unity.2d.animation@10.0.0-pre.1/Runtime/MeshUtilities.cs(36,59): error CS1955: Non-invocable member ‘UnsafeHashMap<int, int3>.Count' cannot be used like a method.” error

  1. Resolution Note:

    This was fixed in : 2022.2.14f1

Comments (6)

  1. y4n3k

    Mar 24, 2023 18:10

    for everyone experiencing this bug, there is a fix you can apply yourself:

    https://forum.unity.com/threads/entities-1-0-2d-urp-fix.1384062/

  2. limburgj

    Mar 15, 2023 21:54

    Getting the same issue, bump

  3. johndoegetsemail

    Feb 15, 2023 17:27

    Ahh so this is the package and bug that caused me the pain of 16 hours of retrying editor installations. I'm sure everyone else dealing with this is assuming the packages should work if 3D URP works without issues. There's no way to know till you get here.

    Because of this bug if you want to setup your project with 2D you have to delete/reset all 2D packages and install everything manually AFTER installing DOTS packages first. On top of that you have to avoid this specific 2D animation package when reinstalling everything so you cant grab it all from 2D features package.

    From the looks of it you only need com.unity.2d.common as it also will grab sprites and that's really all you need besides the URP package.

    Unity should really consider acknowledging this bug exists in the 1.0 prerelease docs. That's only fair to users and testers who might happen to use 2D and incidentally waste tons of time not knowing about this. Please give this feedback some consideration and thanks for your time and hard work.

  4. unity_EzDBYc2QC1rmHw

    Feb 06, 2023 12:11

    i think Unity need to fix this ASAP

  5. danzmarcel

    Dec 07, 2022 06:18

    Also experiencing this issue.
    Probably they're focusing on the 3D DOTS compatibility because this is where you can have the biggest performance increases. I would like to experiment with DOTS in 2D and see if it can make code in general easier.

  6. copperwaif

    Nov 27, 2022 23:53

    also experiencing issue with 2022.2.0b16, creating a new project with the 2d urp template

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.