Hi there. I have a simple native C++ plugin for Unity that simply receives a string from Unity and passes it through a network. Everything works fine until I alt-tab out of Unity and back. Now the strings sent are pointers to garbage, often times "/Hidden/(something)".
I've fixed this using `Application.runInBackground = true;`, which works fine. Even the normal Play/Pause button works fine.
Is this a bug with the editor? Or is this an issue with marshaling? As far as I've read, sending strings should be a no-brainer.
Thanks!
↧