VLCUnityPlugin lingering handle preventing dll removal
Summary
When running the app in the editor, and stopping it, the VLCUnityPlugin.dll is not unloaded by the Editor, which means we have to quit Unity to be able to replace the file and start again with a new build.
Minimal project and steps to reproduce
- play in the editor,
- pause/stop,
- try to delete/move the VLCUnityPlugin.dll
- See error, file in use.
What is the current bug behavior?
Cannot move the VLCUnityPlugin.dll after first Editor run. Fine in standalone.
What is the expected correct behavior?
Being able to move the dll after a run.
Environment
- OS: Windows
- Version Anu
- LibVLC version and architecture Any
- LibVLCSharp version Any
- VLC Unity plugin version Any
- Scripting backend used Any
Possible fixes
I'm not sure if the shutdown process of the plugin is not done correctly, or if libvlc needs to get unloaded (ugh).