Browse Source

Fix Unity on OSX unable to load the plugin due to name change

Matt Coburn 6 years ago
parent
commit
9034fe0d17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Managed/ENet.cs

+ 1 - 1
Source/Managed/ENet.cs

@@ -1002,7 +1002,7 @@ namespace ENet
 #if __IOS__ || UNITY_IOS && !UNITY_EDITOR
         // iOS
 		private const string nativeLibrary = "__Internal";
-#elif __APPLE__ || UNITY_STANDALONE_OSX && !UNITY_EDITOR
+#elif __APPLE__ || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
         // MacOS
         // Custom ENet Repo builds as libenet.bundle; make sure it's the same.
         private const string nativeLibrary = "libenet";