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 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:
    188
    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:
    188
    Hey there! I've confirmed the issue (strange as it is) on my end, and I'm looking into a fix.