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

2019.2 upgrade problem U2D.Animation.SpriteComponent is a ISharedComponent

Discussion in 'Package Manager' started by gavinjboyd, Aug 1, 2019.

  1. gavinjboyd

    gavinjboyd

    Joined:
    Jan 29, 2019
    Posts:
    6
    I updated my project unity 2019.2 yesterday, and I cannot get rid of this error. I opened a new empty scene and still get this error. I started a new project separately and got rid of the error, but I want to know how I can track the source of this, I've only got about 3 months experience with Unity so any advice would be appreciated.

    Another side effect, the rigged animation does not work anymore.

    Code (CSharp):
    1. ArgumentException: type UnityEngine.Experimental.U2D.Animation.SpriteComponent is a ISharedComponentData and has managed references, you must implement IEquatable<T>
    2.  
    3. Unity.Entities.FastEquality.CreateManagedTypeInfo (System.Type t) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/FastEquality.cs:60)
    4.  
    5. Unity.Entities.FastEquality.CreateTypeInfo (System.Type type) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/FastEquality.cs:26)
    6.  
    7. Unity.Entities.TypeManager.BuildComponentType (System.Type type, System.Int32* writeGroups, System.Int32 writeGroupCount) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/TypeManager.cs:1317)
    8.  
    9. Unity.Entities.TypeManager.BuildComponentType (System.Type type) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/TypeManager.cs:1242)
    10.  
    11. Unity.Entities.TypeManager.AddAllComponentTypes (System.Type[] componentTypes, System.Int32 startTypeIndex, System.Collections.Generic.Dictionary`2[TKey,TValue] writeGroupByType) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/TypeManager.cs:739)
    12.  
    13. Unity.Entities.TypeManager.InitializeAllComponentTypes () (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/TypeManager.cs:697)
    14.  
    15. Unity.Entities.TypeManager.Initialize () (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/Types/TypeManager.cs:458)
    16.  
    17. Unity.Entities.EntityManager..ctor (Unity.Entities.World world) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/EntityManager.cs:146)
    18.  
    19. Unity.Entities.World..ctor (System.String name) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities/World.cs:60)
    20.  
    21. Unity.Entities.DefaultWorldInitialization.Initialize (System.String worldName, System.Boolean editorWorld) (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:51)
    22.  
    23. Unity.Entities.AutomaticWorldBootstrap.Initialize () (at Library/PackageCache/com.unity.entities@0.0.12-preview.33/Unity.Entities.Hybrid/Injection/AutomaticWorldBootstrap.cs:11)
     
  2. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    545
    Hi @gavinjboyd,

    Please open your project in the Editor version where you see these problems, and send a bug report using Help >
    Report a Bug...
    . Thanks!
     
  3. GamerXP

    GamerXP

    Joined:
    Mar 22, 2014
    Posts:
    76
    It seems problem is caused by Entities package. It spams errors and don't work with preview - 0.1.0, but is fine with preview.31 -0.0.12.
    So, remove Entities package from Package Manager - it should downgrade it to minimum required one (that will be 0.012)
     
    gavinjboyd likes this.
  4. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    In my case, I update from 2019.3 to 2019.4.4 and that fixed the problem.