Skip to content

Commit c5ffb0a

Browse files
committed
Fix local debug changes
1 parent 8bbee96 commit c5ffb0a

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

scripts/LowLevelPluginManager.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ public static void Initialize()
2323
if (_unityInterfacePtr == IntPtr.Zero)
2424
throw new Exception($"{nameof(GetUnityInterfacesPtr)} returned null");
2525
}
26-
catch(DllNotFoundException ex)
26+
catch(DllNotFoundException)
2727
{
28-
Debug.Log(ex);
28+
Debug.LogWarning("Stub native plugin not found. Low level native callback won't fire. If you didn't install this tool via Unity package, you'll need to build it manually ");
2929
}
30-
31-
Debug.Log("Initialize()");
3230
}
3331

3432
public static void OnDllLoaded(NativeDll dll)
@@ -44,10 +42,7 @@ public static void OnDllLoaded(NativeDll dll)
4442

4543
DllManipulator.LoadTargetFunction(unityPluginLoadFunc, true);
4644
if (unityPluginLoadFunc.@delegate != null)
47-
{
4845
((UnityPluginLoadDel)unityPluginLoadFunc.@delegate)(_unityInterfacePtr);
49-
Debug.Log("Called UnityPluginLoad");
50-
}
5146
}
5247

5348
public static void OnBeforeDllUnload(NativeDll dll)
@@ -58,9 +53,7 @@ public static void OnBeforeDllUnload(NativeDll dll)
5853

5954
DllManipulator.LoadTargetFunction(unityPluginUnloadFunc, true);
6055
if (unityPluginUnloadFunc.@delegate != null)
61-
{
62-
Debug.Log("Called UnityPluginUnload");
63-
}
56+
((UnityPluginUnloadDel)unityPluginUnloadFunc.@delegate)();
6457
}
6558

6659
delegate void UnityPluginLoadDel(IntPtr unityInterfaces);

0 commit comments

Comments
 (0)