- Home /
Native Rendering Plugin not working for iOS
Hi all,
I am trying to run the latest RenderingPluginExample53 for iOS. I tried Unity 5.2 and also 5.4 beta. In Assets/Plugins/ios there is a file MyAppController.mm the rendering plugins are registered: UnityRegisterRenderingPlugin(&UnitySetGraphicsDevice,&UnityRenderEvent);
Aren't these two: UnitySetGraphicsDevice and UnityRenderEvent applicable before Unity 5.2? I am getting the error: Symbols not found for these two functions. I read somewhere that according to new logic, we need to register UnityPluginLoad & UnityPluginUnload but there is no matching UnityRegisterRenderingPlugin() to support this.
Can someone please help me resolve this issue?
I am also running into an issue where UnityPluginLoad and UnityPluginUnload are not being called. I am under the assumption that this is just flat out broken in Unity 5.2. I was assu$$anonymous$$g it would be available in 5.3, but if you tried the 5.4 beta who knows anymore!
I got confirmation from Unity. For UnityPluginLoad and UnityPluginUnload to be called in iOS, you need to register them using the new API - RegisterRenderingPluginV5(). This is required only for iOS.
However, the API RegisterRenderingPluginV5() is not yet available in 5.4 Beta latest release. It is under internal review & should be a part of future 5.4 Beta releases.
I am currently running into the same issue. Are there any new solutions to this problem oder any Workarounds? Im using Unity 5.3.4. and i need a way to render native into unity textures on iOS. (Android und Windows are all working correctly)