Hello all – So, I’ve gone through the plugin and IssuePluginEvent documentation a few times, as well as searched the forums for information.
I’m realizing now that there is a hole in my knowledge – If I call GL.IssuePluginEvent(0), how would unity know where to call UnityRenderEvent(eventId) ?
Anyway, I have a monobehavior subclass which creates an android java object. I can call back and forth without problem. I am trying to render a SurfaceTexture’s GL texture (from a MediaPlayer), to a texture that unity can read. I have had issues where I get a EGL Invalid surface error; I assume because the texture was created on a different thread than it is being accessed from now.
I would like to trigger a function on the java class on the rendering thread – GL.IssuePluginEvent doesn’t seem to do anything, at least in my implementation.
How do I make this happen?