Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Error in another package after upgrading to Transport 2.x.x pre package

Discussion in 'Unity Transport' started by MariuszKowalczyk, Mar 17, 2023.

  1. MariuszKowalczyk

    MariuszKowalczyk

    Joined:
    Nov 29, 2011
    Posts:
    300
    After upgrading to the 2.x pre Transport package, I get this error:

    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.

    Is there any solution other than removing the 2D packages? I will need both in my project.
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    416
    This should be fixed in version 9.0.2 of the animation package. Could you try updating it? If there's no update ready, then it's possible that new version is not publicly available just yet. In the meantime, another user had the same issue and made a fixed version available here.
     
  3. MariuszKowalczyk

    MariuszKowalczyk

    Joined:
    Nov 29, 2011
    Posts:
    300
    Thank you for the answer. Looks like 9.0.2 is not available yet. I tried 10.0.0 but it generates some other error so it is probably not compatible with my editor version. I will for now work without the 2D package imported and when needed I will use the link you provided.