Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug error, cant find length

Discussion in 'Entity Component System' started by NymoBasepro, Sep 30, 2020.

  1. NymoBasepro

    NymoBasepro

    Joined:
    Apr 28, 2018
    Posts:
    26
    Hi,

    In
    namespace UnityEngine.U2D.Animation
    {
    internal class TransformAccessJob

    On line 196 (log += "TransformData Count: " + m_TransformData.Length + "\n";), there is an error:

    Library\PackageCache\com.unity.2d.animation@4.2.5\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?)

    Because it is writing to a log, I just commented it out, but now the package manager will see a change and resolve the issues by reloding the packages.

    I first updated to the latest version of unity ofcourse but the issue still is there.

    I'm available for more information if needed.

    With kind regards,
    Nymo
     
  2. NymoBasepro

    NymoBasepro

    Joined:
    Apr 28, 2018
    Posts:
    26
    So okay, Updating the 2D Animation package seems to work