OpenMacroBoard / StreamDeckSharp

A simple .NET wrapper for Stream Deck
MIT License
351 stars 47 forks source link

AppDomain reload problem in Unity3D #53

Open sloopidoopi opened 1 year ago

sloopidoopi commented 1 year ago

Hi, I tried to integrate the lib into a Unity 3D application. The connection to the device works, but unfortunately there are problems in the Unity editor because it reloads the AppDomain when switching between edit/play mode. this causes the editor to hang. This behavior occurs as soon as you call a streamdeck method. For example: StreamDeck.EnumerateDevices() is sufficient to block the editor after the play mode has ended. Is there any way to circumvent this problem?

wischi-chr commented 4 months ago

Hi @sloopidoopi

I'm sorry that it took me almost a year to respond to your issue. I'm not really into Unity and I've never tried it, so currently I have no clue what could cause this. If you have solved the issue back then I could try to port that fix for the library.