Quantcast
Channel: Questions in topic: "native plugin"
Viewing all articles
Browse latest Browse all 376

Unity sending garbage strings to native plugin on editor alt-tab and back

$
0
0
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!

Viewing all articles
Browse latest Browse all 376

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>