I have been trying to get a low native plugin working on iOS but I never seem to get the UnitySetGraphicsDevice or UnityRenderEvent callbacks. I am using modified example code from here
and am receiving the SetTimeFromUnity native call but not the two rendering related callbacks. I also confirmed that GL.IssuePluginEvent is being called in my unity project but UnityRenderEvent is never called in response.
Has anyone had any luck getting the low-level interface working on iOS? Is there some sort of trick? The sample with the documentation implies it only works on Windows/Mac.
EDIT: Some clarification
I actually have native calls working fine. I was wanting info specifically on the low level rendering callbacks you can receive that were added in 3.5 (UnitySetGraphicsDevice or UnityRenderEvent callbacks) that are described in the link in my post. I need to make some native OpenGL draw calls outside of Unity and going forward using those callbacks is the only way to assure I get the callback on the rendering thread. Right now I can make the OpenGL draw calls on the same thread that I make native calls on but when multi-threading is added to iOS Unity in the future (as it currently works on Windows) I will need those low level graphics calls to work to ensure I do my drawing on the correct thread.