Skip to content

v1.3.2 — Roslyn compiler for full C# support

Choose a tag to compare

@youichi-uda youichi-uda released this 17 Apr 12:21
· 5 commits to master since this release

Fixed

  • execute_editor_script now uses Unity's bundled Roslyn compiler via subprocess, giving full modern C# support (local functions, pattern matching, switch expressions, tuples, etc.) on all platforms. The previous CodeDom path silently failed on Linux where Mono's mcs only supports C# 6.
  • Fixed "defined multiple times" error storm in execute_editor_script after domain reloads — assembly references are now deduplicated by filename.
  • macOS Unity 6000.3+ path discovery: Roslyn binaries moved to Resources/Scripting/ and are now probed correctly.
  • Concurrent execute_editor_script calls no longer collide on temp files (per-call GUID subdirectory).
  • Pipe-buffer deadlock fixed when stderr fills before stdout is drained.

Thanks to @Sandersm90 for the comprehensive PR (#6).