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

Question package refence error after Unity Editor update

Discussion in 'Editor & General Support' started by er0d, Nov 24, 2022.

  1. er0d

    er0d

    Joined:
    Nov 8, 2017
    Posts:
    20
    Hi,

    I'm working on a project using DOTS (2D entities and Burst).
    Today, I updated Unity Editor to last LTS version (2021.3.14f1).
    I also updated the packages. Particularly :
    2D.Entities -> Version 0.32.0-preview.5
    Burst -> Version 1.7.3

    Problem : I got the following error when I open my project :
    Library\PackageCache\com.unity.2d.entities@0.32.0-preview.5\Common\Unity.2D.Entities\AssemblyInfo.cs(1,1): error DC0060: Assembly Unity.2D.Entities contains Entities.ForEach or Entities.OnUpdate invocations that use burst but does not have a reference to Unity.Burst. Please add an assembly reference to `Unity.Burst` in the asmdef for Unity.2D.Entities.

    So I tried to add the reference Unity.Burst to Unity.2D.Entities, but the properties of the package is greyed in inspector, so I can't edit it :
    upload_2022-11-24_18-57-6.png


    I also tried to edit Unity.2D.Entities.asmdef, but my modifications are overwritten by the Editor.

    Anyone know why I got this error ?
     

    Attached Files:

  2. er0d

    er0d

    Joined:
    Nov 8, 2017
    Posts:
    20
    no one have an idea ?
    Maybe I should have post this question in another part of the forum ?