Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug DOTS 0.50 upgrade errors

Discussion in 'Entity Component System' started by alexandre-fiset, Mar 17, 2022.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    702
    I get these two errors after upgrading to DOTS 0.50:

    Code (CSharp):
    1. Library\PackageCache\com.unity.entities@0.50.0-preview.24\Unity.Entities.Hybrid\GameObjectConversion\GameObjectConversionMappingSystem.cs(1093,36): error CS0030: Cannot convert type 'Unity.Entities.Chunk.<Buffer>e__FixedBuffer' to 'Unity.Entities.Entity*'
    Code (CSharp):
    1. Library\PackageCache\com.unity.entities@0.50.0-preview.24\Unity.Entities.Hybrid\GameObjectConversion\GameObjectConversionMappingSystem.cs(1099,52): error CS0019: Operator '+' cannot be applied to operands of type 'Chunk.<Buffer>e__FixedBuffer' and 'int'
    Any way around that?
     
  2. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    702
    Turns out this error means "You've done enough code refactoring, please restart Unity and try again".
     
    MNNoxMortem and bb8_1 like this.
  3. bb8_1

    bb8_1

    Joined:
    Jan 20, 2019
    Posts:
    98
    Yes i got the same errors then i just restarted Unity and the project worked fine
     
  4. damsku

    damsku

    Joined:
    Mar 10, 2011
    Posts:
    17
    But they come back in build or if reimporting the Unity.Entities.Hybrid folder in editor for me. Are those gone for good with you?
     
  5. tylo

    tylo

    Joined:
    Dec 7, 2009
    Posts:
    154
    Sadly no amount of restarting Unity fixed this problem for me. It appears for me consistently again and again.
     
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,011
    Restarting fixed it for me too.

    Actually, after restarting I got other errors pointing to the one remaining (missing) reference, since I was in the process of adding references to an assembly definition when the errors inside com.unity.entities appeared.