Skip to content

Commit f3909dc

Browse files
fix
Tricky assembly issue where it exposed Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2 when in editor and during tests but would fail when building.
1 parent 2f5f4ba commit f3909dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
#if MULTIPLAYER_TOOLS
2222
[assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.GameObjects.Tests")]
23-
[assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2")]
2423
[assembly: InternalsVisibleTo("TestProject.ToolsIntegration.RuntimeTests")]
2524
[assembly: InternalsVisibleTo("TestProject.Netcode.GameObjejct.Runtime.Tests")]
2625
#endif // MULTIPLAYER_TOOLS
2726
#endif // UNITY_INCLUDE_TESTS
27+
// Should always be visible when multiplayer tools package is instlled.
28+
#if MULTIPLAYER_TOOLS
29+
[assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2")]
30+
#endif

0 commit comments

Comments
 (0)