<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Frfc%2F0002-generator-spike</id>
	<title>Unity.Multiplayer/rfc/0002-generator-spike - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Frfc%2F0002-generator-spike"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/rfc/0002-generator-spike&amp;action=history"/>
	<updated>2026-12-05T22:22:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/rfc/0002-generator-spike&amp;diff=1145&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/rfc/0002-generator-spike&amp;diff=1145&amp;oldid=prev"/>
		<updated>2026-11-29T20:44:40Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:44, 29 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setup ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setup ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The throwaway project is [https://github.com/mindattic/Unity.Multiplayer/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tree&lt;/del&gt;/main/spikes/GeneratorSpike &amp;lt;code&amp;gt;spikes/GeneratorSpike/&amp;lt;/code&amp;gt;]. It uses Unity 6000.4.3f1, NGO 2.11.0 and Transport 2.7.2, the same versions as &amp;lt;code&amp;gt;package.json&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The throwaway project is [https://github.com/mindattic/Unity.Multiplayer/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;blob&lt;/ins&gt;/main/spikes/GeneratorSpike &amp;lt;code&amp;gt;spikes/GeneratorSpike/&amp;lt;/code&amp;gt;]. It uses Unity 6000.4.3f1, NGO 2.11.0 and Transport 2.7.2, the same versions as &amp;lt;code&amp;gt;package.json&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/rfc/0002-generator-spike&amp;diff=944&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/rfc/0002-generator-spike&amp;diff=944&amp;oldid=prev"/>
		<updated>2026-11-29T20:37:21Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= RFC 0002: Generator spike (UM-T4) =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;Decision: GO.&amp;lt;/strong&amp;gt; A Roslyn source generator can write the NGO RPC stubs and NetworkVariables. UM-T11 builds the real generator. The fallback (hand-written stubs in the generator&amp;#039;s shape, never reflection) is not needed. UM-T10 still hand-writes its stubs in that shape, as [[Unity.Multiplayer/rfc/0001-architecture#Ticket chain|RFC 0001]] planned, and UM-T11 replaces them.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Question ==&lt;br /&gt;
&lt;br /&gt;
Can a Roslyn &amp;lt;code&amp;gt;IIncrementalGenerator&amp;lt;/code&amp;gt; turn a C# 9 extended partial method into an NGO &amp;lt;code&amp;gt;[Rpc(SendTo.Server)]&amp;lt;/code&amp;gt; stub, and a marked field into a &amp;lt;code&amp;gt;NetworkVariable&amp;lt;/code&amp;gt;, in a way that NGO&amp;#039;s IL post-processor (ILPP) accepts and that still runs in an IL2CPP Linux Dedicated Server build? If not, UM-T11 falls back to hand-written stubs.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
The throwaway project is [https://github.com/mindattic/Unity.Multiplayer/tree/main/spikes/GeneratorSpike &amp;lt;code&amp;gt;spikes/GeneratorSpike/&amp;lt;/code&amp;gt;]. It uses Unity 6000.4.3f1, NGO 2.11.0 and Transport 2.7.2, the same versions as &amp;lt;code&amp;gt;package.json&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Piece&lt;br /&gt;
! What it is&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Generator/&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;MindAttic.Spike.Generators&amp;lt;/code&amp;gt;: an &amp;lt;code&amp;gt;IIncrementalGenerator&amp;lt;/code&amp;gt;, netstandard2.0, Microsoft.CodeAnalysis.CSharp 4.3.1, LangVersion 9&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Unity/Assets/Plugins/Generators/MindAttic.Spike.Generators.dll.meta&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;labels: [RoslynAnalyzer]&amp;lt;/code&amp;gt;, every platform unticked (Any and Editor &amp;lt;code&amp;gt;enabled: 0&amp;lt;/code&amp;gt;, all standalone targets excluded)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Unity/Assets/Spike/Scripts/SpikeEntity.cs&amp;lt;/code&amp;gt;&lt;br /&gt;
| The game-side code: &amp;lt;code&amp;gt;[ToServer] public partial void Ping(int amount);&amp;lt;/code&amp;gt;, its handler &amp;lt;code&amp;gt;void OnPing(int amount, ulong sender)&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;[Synced] int _total;&amp;lt;/code&amp;gt;. It contains no NGO plumbing.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Unity/Assets/Spike/Tests/SpikeRpcTests.cs&amp;lt;/code&amp;gt;&lt;br /&gt;
| A &amp;lt;code&amp;gt;NetcodeIntegrationTest&amp;lt;/code&amp;gt; PlayMode test: a host and 1 client in one process&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Unity/Assets/Spike/Scripts/SpikeBootstrap.cs&amp;lt;/code&amp;gt;&lt;br /&gt;
| A command-line driver for the standalone players (&amp;lt;code&amp;gt;-spikeMode server&amp;amp;#124;host&amp;amp;#124;client&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Unity/Assets/Spike/Editor/SpikeBuild.cs&amp;lt;/code&amp;gt;&lt;br /&gt;
| Batch-mode entry points: scene/prefab setup, the IL2CPP Linux server build, the Mono Windows player build&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;run-spike.ps1&amp;lt;/code&amp;gt;&lt;br /&gt;
| Runs every step below in order and exits non-zero at the first failure&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The generator wrote this for &amp;lt;code&amp;gt;SpikeEntity&amp;lt;/code&amp;gt;. Unity does not save generated sources to disk, so this copy was captured by running the same generator through &amp;lt;code&amp;gt;CSharpGeneratorDriver&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-csharp&amp;quot;&amp;gt;// &amp;amp;lt;auto-generated&amp;gt;MindAttic UM-T4 spike generator&amp;amp;lt;/auto-generated&amp;gt;&lt;br /&gt;
#pragma warning disable&lt;br /&gt;
namespace MindAttic.Spike&lt;br /&gt;
{&lt;br /&gt;
    partial class SpikeEntity&lt;br /&gt;
    {&lt;br /&gt;
        public partial void Ping(int amount)&lt;br /&gt;
        {&lt;br /&gt;
            PingRpc(amount);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        &amp;amp;#91;global::Unity.Netcode.Rpc(global::Unity.Netcode.SendTo.Server)]&lt;br /&gt;
        private void PingRpc(int amount, global::Unity.Netcode.RpcParams rpcParams = default)&lt;br /&gt;
        {&lt;br /&gt;
            OnPing(amount, rpcParams.Receive.SenderClientId);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private global::Unity.Netcode.NetworkVariable&amp;amp;lt;int&amp;gt; &amp;amp;#95;_TotalNetVar = new global::Unity.Netcode.NetworkVariable&amp;amp;lt;int&amp;gt;();&lt;br /&gt;
        public global::Unity.Netcode.NetworkVariable&amp;amp;lt;int&amp;gt; TotalVariable { get { return &amp;amp;#95;_TotalNetVar; } }&lt;br /&gt;
        public int Total { get { return &amp;amp;#95;_TotalNetVar.Value; } set { &amp;amp;#95;_TotalNetVar.Value = value; } }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Results (2026-10-20, all on the owner&amp;#039;s Windows 11 machine) ==&lt;br /&gt;
&lt;br /&gt;
Every check passed. Each step passed when run by hand, and &amp;lt;code&amp;gt;run-spike.ps1&amp;lt;/code&amp;gt; then passed end to end from a clean build.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! #&lt;br /&gt;
! Check&lt;br /&gt;
! Evidence&lt;br /&gt;
! Result&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Unity loads the generator from a RoslynAnalyzer-labelled DLL and compiles the extended partial method&lt;br /&gt;
| &amp;lt;code&amp;gt;MindAttic.Spike.Game&amp;lt;/code&amp;gt; compiles. Without the generator it would stop with CS8795 (partial method has no implementation).&lt;br /&gt;
| ✅&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| NGO ILPP processes the generated RPC and NetworkVariable&lt;br /&gt;
| &amp;lt;code&amp;gt;Library/ScriptAssemblies/MindAttic.Spike.Game.dll&amp;lt;/code&amp;gt; contains &amp;lt;code&amp;gt;&amp;amp;#95;_rpc_handler_1094476955&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;amp;#95;_initializeVariables&amp;lt;/code&amp;gt;, which NGO&amp;#039;s &amp;lt;code&amp;gt;NetworkBehaviourILPP&amp;lt;/code&amp;gt; emits&lt;br /&gt;
| ✅&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| A host and 1 client exchange it (in one process)&lt;br /&gt;
| &amp;lt;code&amp;gt;SpikeRpcTests.GeneratedServerRpcAndNetworkVariableRoundTrip&amp;lt;/code&amp;gt; passed (1/1): the client called &amp;lt;code&amp;gt;Ping(7)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Ping(5)&amp;lt;/code&amp;gt;, the server&amp;#039;s &amp;lt;code&amp;gt;OnPing&amp;lt;/code&amp;gt; ran twice with sender = client 1, &amp;lt;code&amp;gt;Total&amp;lt;/code&amp;gt; = 12 replicated back, and &amp;lt;code&amp;gt;OnPing&amp;lt;/code&amp;gt; never ran on the client&lt;br /&gt;
| ✅&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| A host and 1 client exchange it (two Mono Windows player processes over UDP)&lt;br /&gt;
| The host logged &amp;lt;code&amp;gt;Ping(7) from client 1 -&amp;gt; Total=7&amp;lt;/code&amp;gt;, the client logged &amp;lt;code&amp;gt;PASS client: Total=7 replicated&amp;lt;/code&amp;gt;, and both exited 0&lt;br /&gt;
| ✅&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| An IL2CPP Linux Dedicated Server build runs it&lt;br /&gt;
| &amp;lt;code&amp;gt;StandaloneLinux64&amp;lt;/code&amp;gt;, subtarget Server, IL2CPP: the build succeeded (about 77 s) and &amp;lt;code&amp;gt;il2cppOutput&amp;lt;/code&amp;gt; holds the RPC handler. Run in &amp;lt;code&amp;gt;ubuntu:22.04&amp;lt;/code&amp;gt; under Docker with UDP 7777 published, joined by the Windows Mono client: the server logged &amp;lt;code&amp;gt;platform=LinuxServer backend=IL2CPP&amp;lt;/code&amp;gt; … &amp;lt;code&amp;gt;Ping(7) from client 1 -&amp;gt; Total=7&amp;lt;/code&amp;gt; … &amp;lt;code&amp;gt;PASS server&amp;lt;/code&amp;gt;, and both sides exited 0&lt;br /&gt;
| ✅&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Findings UM-T8, UM-T11 and UC-T13 inherit ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Generator shape works as designed.&amp;lt;/strong&amp;gt; Write the partial body that calls &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;gt;Rpc&amp;lt;/code&amp;gt;, plus &amp;lt;code&amp;gt;[Rpc(SendTo.&amp;amp;lt;Target&amp;gt;)] void &amp;amp;lt;Name&amp;gt;Rpc(args, RpcParams rpcParams = default)&amp;lt;/code&amp;gt; that calls &amp;lt;code&amp;gt;On&amp;amp;lt;Name&amp;gt;(args, sender)&amp;lt;/code&amp;gt;. ILPP needs the RPC name to end in &amp;lt;code&amp;gt;Rpc&amp;lt;/code&amp;gt;. The trailing &amp;lt;code&amp;gt;RpcParams&amp;lt;/code&amp;gt; parameter gives the sender id for free (&amp;lt;code&amp;gt;rpcParams.Receive.SenderClientId&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;The partial implementation must repeat the definition&amp;#039;s modifiers exactly.&amp;lt;/strong&amp;gt; The spike copies them from the declaring syntax.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Generated &amp;lt;code&amp;gt;NetworkVariable&amp;lt;/code&amp;gt; fields need no special handling.&amp;lt;/strong&amp;gt; ILPP initializes them like hand-written ones. The spike kept the user&amp;#039;s &amp;lt;code&amp;gt;[Synced]&amp;lt;/code&amp;gt; field as a marker only (CS0169 suppressed). UM-T11 should either make the analyzer reject direct use of that field (already planned) or turn the marker into a property-style declaration.&lt;br /&gt;
* &amp;lt;strong&amp;gt;The NGO test helpers live in the &amp;lt;code&amp;gt;Unity.Netcode.Runtime.Tests&amp;lt;/code&amp;gt; assembly in NGO 2.11.0.&amp;lt;/strong&amp;gt; There is no &amp;lt;code&amp;gt;Unity.Netcode.TestHelpers.Runtime&amp;lt;/code&amp;gt; assembly in this version, although the package&amp;#039;s own asmdef still lists that name. A PlayMode test asmdef references &amp;lt;code&amp;gt;Unity.Netcode.Runtime.Tests&amp;lt;/code&amp;gt; and needs &amp;lt;code&amp;gt;&amp;quot;testables&amp;quot;: [&amp;quot;com.unity.netcode.gameobjects&amp;quot;]&amp;lt;/code&amp;gt; in the project manifest. This applies to UM-T8&amp;#039;s test setup.&lt;br /&gt;
* &amp;lt;strong&amp;gt;IL2CPP Linux from a Windows editor needs two toolchain packages in the &amp;lt;em&amp;gt;building project&amp;#039;s&amp;lt;/em&amp;gt; manifest:&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;com.unity.toolchain.win-x86_64-linux&amp;lt;/code&amp;gt; 1.1.0 (the 6000.3+ toolchain) and &amp;lt;code&amp;gt;com.unity.sysroot.linux-x86_64&amp;lt;/code&amp;gt; 2.0.10. Without them the build fails with &amp;quot;No Toolchain found for host platform&amp;quot;. These belong to whichever project builds the server (UnityCursory, CI), not to the package. UM-T15&amp;#039;s &amp;quot;Build Dedicated Server (Linux)&amp;quot; menu should check for them and say so clearly.&lt;br /&gt;
* &amp;lt;strong&amp;gt;A Mono client and an IL2CPP server interoperate.&amp;lt;/strong&amp;gt; The ILPP-generated RPC hashes match across backends and platforms.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Running the Linux server locally needs Docker&amp;#039;s Linux engine.&amp;lt;/strong&amp;gt; The owner&amp;#039;s Docker Desktop defaults to Windows containers, so &amp;lt;code&amp;gt;run-spike.ps1&amp;lt;/code&amp;gt; switches to the Linux engine for the server step and back to Windows afterwards.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Not tested here; checked in UM-T11:&amp;lt;/strong&amp;gt; the generator placed inside the package (&amp;lt;code&amp;gt;Runtime/Generators/&amp;lt;/code&amp;gt;, under the adapter&amp;#039;s asmdef) instead of under &amp;lt;code&amp;gt;Assets/&amp;lt;/code&amp;gt;. Unity applies an analyzer in an asmdef&amp;#039;s folder to that assembly and to the assemblies that reference it. UM-T11 confirmed it: the PlayMode test assembly (&amp;lt;code&amp;gt;MindAttic.Unity.Multiplayer.Tests&amp;lt;/code&amp;gt;, which references the adapter) compiles and passes with its &amp;lt;code&amp;gt;TestAvatar&amp;lt;/code&amp;gt; plumbing written only by the in-package generator.&lt;br /&gt;
&lt;br /&gt;
== Reproduce ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-powershell&amp;quot;&amp;gt;pwsh -File spikes/GeneratorSpike/run-spike.ps1          # or powershell.exe; -SkipDocker skips the Linux run&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Logs and the test results XML are written to &amp;lt;code&amp;gt;spikes/GeneratorSpike/logs/&amp;lt;/code&amp;gt;, which git ignores. The spike is throwaway, and nothing in the package depends on it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/rfc/0002-generator-spike.md Unity.Multiplayer/docs/rfc/0002-generator-spike.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>