Conflict with DOTS

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:

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?

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.

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!

Hey there! I’ve confirmed the issue (strange as it is) on my end, and I’m looking into a fix.