# Local Testing via ParrelSync

[ParrelSync](https://github.com/VeriorPies/ParrelSync) 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

**Cons**

* Requires you to have multiple Unity Editors open

## How to use?

* Install ParrelSync as described in their [Installation Instructions](https://github.com/VeriorPies/ParrelSync#installation)
  * UPM Package installation is preferred as **coherence** supports it out-of-the-box
  * If installing via .unitypackage, you need to set [CloneMode.Enabled](https://unityapi.coherence.io/docs/v1.2.0/api/Coherence.Editor.CloneMode.html#Coherence_Editor_CloneMode_Enabled) accordingly by yourself. For example, by adding the following script to an *Editor* folder in your project:

```csharp
// 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 the clone Editors.
* Make sure [bake data](/1.2/coherence-sdk-for-unity/baking-and-code-generation.md) is up-to-date before starting to test, and that the Replication Server is running with the latest [schema](/1.2/schema-explained.md) generated by it.
* Enter Play Mode on 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.

<figure><img src="https://lh7-eu.googleusercontent.com/oPye1yDqQhrUTYgnrXZsFoNJ7GN69qLnaVDz17ZI5J30OZFE8PGoS__VW0bANCkhL610jJPNYmXRU5mRU0GpR33DjvTx5q0ljury62UCK56Dq76XVytEhgvEWoMSHTc2vO3R2rP2JhIugvRDP0JJFo_q1A=s2048" alt=""><figcaption><p>Inspecting a CoherenceSync on a Clone</p></figcaption></figure>

<figure><img src="https://lh7-eu.googleusercontent.com/iB77lZ975kiQ3XlF3eJNCHkwaHj0nL67IRUC8LKQlMFQTufnFoHeaFmnxFeVShcSBFYbb5f4MJheQHuRqZArq5ZXT2YN1WUIfzLXlms3ErA5jM2VwKN1ONWJ7qXWFBq5cZ3cHevcdxd-5GMqvxig47zV1g=s2048" alt=""><figcaption><p>Main Editor and a Clone Editor side by side</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coherence.io/1.2/get-started/build-and-run/local-testing-via-parrelsync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
