"Preloaded Assets" error when installing Coherence 1.2.0 in Unity

I created an empty 3D project in Unity 2022.3.28f1 and imported Coherence 1.2.0 via Package Manager, then got this error:

ArgumentNullException: RuntimeSettings is a PreloadedSingleton, which should be included in PlayerSettings' Preloaded Assets. Recompile for Preloaded Assets to be updated by coherence. If the issue persists, reimport all assets (Assets > Reimport All). If that doesn't solve the issue, check the docs (https://docs.coherence.io/overview/troubleshooting) or reach to us on community.

Screenshot: https://i.imgur.com/4XDXeLN.png

I added these scripts to Preloaded Assets and did Assets > Reimport All, but the error remained.

With Unity 2023.2.20f1 I got the same result.

This is my first installation of Coherence on this computer.
The first-step-tutorial-main project works fine.

I installed version 1.1.15 via Package Manager > Version History.
This version works fine.

Hey, thanks for bringing this up.

Been able to repro, and indeed new projects using 1.2.0 that haven’t used coherence before will welcome you with a bunch of nullrefs on PreloadedAssets. We’re sorry for this, this has been an oversight on our side.

Working on hotfixing and shipping this as part of 1.2.1. Expect an update sometime in the following days.

In the meantime, going from 1.1.5 → 1.2.0 should do the trick.

1 Like

Hi @zaicheg.reg we just pushed 1.2.1, which should resolve this issue.
Let us know how you get on :slight_smile:

1 Like

Yes, issue solved with 1.2.1. Thank you.

2 Likes