Local testing via ParrelSync

ParrelSyncarrow-up-right is an open-source project which allows you to open multiple Unity Editor instances, all pointing to the same Unity project (using Symbolic links).

Pros

  • Short iteration times

  • Easy to debug since every client is an Editor

  • Works with Unity versions prior to Unity 6

Cons

  • Can be more resource demanding than just running builds

  • Each clone requires the whole project to be duplicated on disk (1 clone means 2x the disk space, and so on). This might be a lot for huge projects.

How to use?

// Assets/Editor/CoherenceClone.cs
// This script is only needed if you're installing ParrelSync via .unitypackage

using Coherence.Editor;

[InitializeOnLoad]
internal class CoherenceClone
{
  static CoherenceClone()
  {
    CloneMode.Enabled = ParrelSync.ClonesManager.IsClone();
  }
}
  • Open ParrelSync > Clones Manager. Create a new clone, and open it

  • Continue development in the main Editor. Don't edit files in clone Editors

  • Make sure baked data is up-to-date before starting to test, and that the Replication Server is running with the latest schema generated

  • Enter Play Mode in each Editor

coherence tells apart ParrelSync clones from the main Editor, so it's easier for you to not edit assets in clones by mistake.

Inspecting a CoherenceSync on a clone
Main Editor and a clone Editor side by side

Was this helpful?