Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Conflict with DOTS

Discussion in 'Unity MARS' started by talila, Jan 18, 2023.

  1. talila

    talila

    Joined:
    Mar 6, 2015
    Posts:
    26
    Our team is trying to use MARS in a project that uses Unity DOTS. When trying to install MARS, we are seeing multiple error messages like this one:

    Code (CSharp):
    1. Library/PackageCache/com.unity.runtime-scene-serialization@1.0.0-exp.3/Runtime/Adapters/JsonAdapter.cs(119,30): error CS0012: The type 'FixedString32Bytes' is defined in an assembly that is not referenced. You must add a reference to assembly 'Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
    Following the package documentation of the Runtime Scene Serialization I found the following entry in the Known Issues section:
    • There may be some interference with DOTS serialization because of the types of property bags generated by this package

    Is a fix for this bug on the roadmap of the MARS and/or DOTS team? Any direction to how we could resolve this?
     
  2. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    196
    Hi there! Thanks for reporting this issue. Can you let us know what version of the Editor and DOTS packages you are using? If you do not need the AR Companion App, you can remove the `com.unity.ar-companion-core` package from your project, which should resolve this issue.
     
  3. talila

    talila

    Joined:
    Mar 6, 2015
    Posts:
    26
    Hi! Thanks for the reply - we tried this in Unity 2022.2.1f1 and with Entities 1.0.0-pre.15.

    We tried removing the Companion App (plus its dependencies) and that actually solves the issue for us. We'll build the companion app from a separate Unity project then. Thanks for the suggestion!
     
  4. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    196
    Hey there! I've confirmed the issue (strange as it is) on my end, and I'm looking into a fix.