EditorPlayModeSync

Synchronizes Play Mode state across multiple Unity Editor instances on the local network using UDP broadcast. When one editor enters or exits Play Mode, other listening editors follow automatically.

Architecture

spinner

Data Flow

spinner

Key Concepts

  • UDP Broadcast: Messages sent to IPAddress.Broadcast on port 8052 — all editors on the LAN receive them

  • Self-filtering: Each editor identifies itself via ParagonPaths.Project and ignores its own broadcasts

  • Delayed execution: Play mode changes are applied with a 1-second delay via Yield.WaitForEditorSeconds

  • Editor Preferences: Both SyncEnterPlay and SyncExitPlay are backed by [EditorPreference] for persistence

Classes

Class
Purpose

UDP-based Play Mode synchronization across editor instances

See Also

Last updated