Search Issue Tracker
Duplicate
Votes
0
Found in
5.0.0a17
Issue ID
621510
Regression
No
External plugins are not unloaded when exiting play mode in editor
To Reproduce:
1. Open 'reproProj.zip' attached to the post below ( use the project attached by the user if using Windows).
2. Run, observe that 'simpleTestPlugin.bundle' is loaded, exit play mode, remove 'simpleTestPlugin.bundle' from Plugins dir.
3. Play, click 'PrintNumber..' button, observe that the plugin is still loaded even though it no longer exists in the project.
4. This means that native plugins cannot be updated without restarting the editor. And also this behavior is inconsistent (all changes done in play mode should be removed when gong back to editor) .
It might be possible to unload DLLs manually in 'OnApplicationQuit' using 'FreeLibrary' in Windows. But no equivalent for this function seems to exists on OSX.
This is a Net/Mono issue, but if is there is a way to work around this it would be nice if Unity unloaded native plugins when exiting play mode.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment