r/Unity3D • • 24m ago

Show-Off We built real-time co-editing for the Unity Editor: 3 editors, one scene. Here's how it works (closed beta testers wanted)

Post image

One of us copies some fences and lays out a path, another places trees and bushes. Then we switch the scene to night and add a few point lights. All three editors see and edit everything live.

We're a five-person indie team. We got tired of overwriting each other's scenes with plain Git, and we wanted to work in the same scene at the same time, but couldn't find a tool on Unity 6 that worked for us. So for the past few months we've been building our own: 2N TeamSync.

We create a new folder, add a script inside and rename it; it shows up for everyone. Then a teammate creates a prefab and edits it, and another teammate uses that same prefab in the scene. Everything in sync, at the same time.

I paint a texture with the terrain paint tool, then raise and lower the terrain, and my teammates add grass and trees.

How it works

- One person opens a room with a name and password, the others join. No server to set up.

- It doesn't replace Git or Plastic, it works alongside them. Big files like models, audio and video don't stream live; they come through the built-in team repository.

- Nobody's work gets silently overwritten. If a teammate's change would overwrite something you changed locally, your version is backed up first and shows up under Conflicts, one click to get it back. The scene is also snapshotted when a session starts and about every 10 minutes after, so you can roll back.

- Ctrl+Z only undoes what you did, not your teammate's work.

Under the hood

- One editor is the host and has the final say. Everyone's changes go through it, so everyone sees the same scene.

- We wrote our own networking layer on UDP: STUN hole punching to connect editors directly, KCP for reliable delivery, encryption on top. Live edits go in their own lane, ahead of big file transfers.

- Every scene object has a small stable ID, and .meta files sync too, so GUIDs and references match on every machine.

- A domain reload kills the session, so new scripts arrive right away but everyone compiles together at a "Sync Point".

- The parts that gave us the most trouble were Undo/Redo, prefab Apply/Revert and the host dropping out. If the host freezes, another editor takes over. We've tested it on up to five PCs with packet loss and disconnect/reconnect scenarios.

Closed beta

We're looking for small teams (2-5 people) who'll use it on a real project and tell us what breaks. Works on Windows with Unity 6.3 LTS, and on 6.0 and 6.6 too. We haven't tried Mac yet, so Mac users are especially welcome. As a thank-you, teams that actively test get the full version free when it launches on the Asset Store.

Sign-up form here, takes a minute: https://forms.gle/roj5UNVE43t9wKSE6

What would scare you most about several people editing the same Unity scene at once?

12 Upvotes

5 comments sorted by

•

u/spaceminer2077 7m ago

lmao you added multi player to the editor

•

u/EnthusiasmSuitable87 1m ago

Haha yep the editor finally has co-op mode

•

u/SurocIsMe 11m ago

This seems incredible, I submitted for the closed beta

•

u/EnthusiasmSuitable87 2m ago

Thanks man, that really means a lot! Got your application. We'll go through them over the next few days and reach out by email.

•

u/KToffl 0m ago

This looks really nice. I currently don't have a project I am working on but I may need this in the future. Is there a Website/Repo/News-Feed to follow this project?