Skip to content

v1.4.0 — Unity 6000.5 support & multi-project routing

Latest

Choose a tag to compare

@youichi-uda youichi-uda released this 01 Jul 01:15
· 1 commit to master since this release

Unity 6000.5 support

  • Fix: the plugin failed to initialize on Unity 6000.5 because it used the now-obsolete instance-ID APIs (Object.GetInstanceID(), SerializedProperty.objectReferenceInstanceIDValue). These are version-guarded to the new EntityId APIs on 6000.5+, and still compile on 2021.3+.
  • Fix: execute_editor_script failed 100% of the time on 6000.5 with The filename or extension is too long. On 6000.5 Unity's bundled Roslyn compiler moved to DotNetSdk/sdk/<ver>/Roslyn/bincore/, so the plugin fell back to CodeDom, whose command line overflowed the Windows length limit with a real project's hundreds of assembly references. Roslyn discovery now finds the new layout, and all compiler arguments pass through a response file so large projects compile on every path.
  • Cleanup: the plugin now compiles with zero warnings on 6000.5 (deprecated FindObjectsByType/FindFirstObjectByType overloads migrated behind version guards; a serialization-analyzer warning resolved).

Multi-project routing

  • The plugin now sends a hello project handshake on connect, so the MCP server can route to the correct editor when several Unity instances run at once (ports 6605-6609), instead of the previous "last connection wins" behavior. Non-matching editors are closed with code 4001 and back off for 30s. Requires the matching MCP server from the v1.4.0 package.

Thanks to Ed for the detailed 6000.5 reports and Zee for the multi-project repro.