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
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
Comments (6)
-
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/
-
limburgj
Mar 15, 2023 21:54
Getting the same issue, bump
-
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.
-
unity_EzDBYc2QC1rmHw
Feb 06, 2023 12:11
i think Unity need to fix this ASAP
-
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. -
copperwaif
Nov 27, 2022 23:53
also experiencing issue with 2022.2.0b16, creating a new project with the 2d urp template
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
This was fixed in : 2022.2.14f1