- Home /
Update texture on Android native plugin
Hello.
I'm developing an app with Unity, updating Unity textures via native OpenGL in the plugin. All of OpenGL codes are executed in Update() of a game object, but (or so) it works without multi-threaded rendering. I guess because Update() call thread is not the render thread when multi-threaded rendering is enabled.
Unity's native plugin system have render event callbacks, but it does not work on mobile platforms. (render event callback is called on the render thread.. right?)
Is there any idea to make it work with multi-threaded rendering?
I would like to know this as well, the only api entry i could find is extern "C" void EXPORT_API UnityRenderEvent (int eventID); but that is so limited and unreliable to the point of being unusable. It also seems to require a DLL plugin even if you are building a jar