Skip to content

Commit b56e216

Browse files
fix: update mono api calls to coreclr-compatible api calls (#3799)
* Migrate AppDomain.GetAssemblies() to CurrentAssemblies.GetLoadedAssemblies() * Update CHANGELOG --------- Co-authored-by: Emma <[email protected]>
1 parent b37d121 commit b56e216

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
1818

1919
### Changed
2020

21+
- First pass of CoreCLR engine API changes. (#3799)
2122
- Changed NetworkAnimator to use the `RpcAttribute` along with the appropriate `SendTo` parameter. (#3586)
2223
- Improve performance of `NetworkTransformState`. (#3770)
2324

com.unity.netcode.gameobjects/Editor/NetworkManagerEditor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
using Unity.Netcode.Editor.Configuration;
66
using UnityEditor;
77
using UnityEngine;
8+
#if UNITY_6000_5_OR_NEWER
9+
using UnityEngine.Assemblies;
10+
#endif
811

912
namespace Unity.Netcode.Editor
1013
{
@@ -60,7 +63,11 @@ private void ReloadTransports()
6063
{
6164
m_TransportTypes.Clear();
6265

66+
#if UNITY_6000_5_OR_NEWER
67+
var assemblies = CurrentAssemblies.GetLoadedAssemblies();
68+
#else
6369
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
70+
#endif
6471

6572
foreach (var assembly in assemblies)
6673
{

0 commit comments

Comments
 (0)