- Home /
Calling unity method from within native plugin
I'm experimenting with different ways to make method calls between Java and Unity and vice versa. So far, I'm able to call native methods from within C# scripts without issue, and use UnitySendMessage from Java as well. I'm concerned a bit with the speed of UnitySendMessage though. I don't call it every frame or anything, but the called method definitely comes at (I know it's documented) delay.
What I'm wondering is if, since my assumption is that the Unity code is running as native libraries as well, if it is at all possible to make calls to Unity methods from within a native plugin.
Thank you, Jeremiah
Answer by Graham-Dunnett · Apr 07, 2013 at 09:15 PM
It's not possible to call Unity native code directly (mostly because these calls are hidden). What are you trying to do?
Use a JNI method to try to wrap a call to Unity rather than use UnitySend$$anonymous$$essage. If it's not possible, then that's that.
Your answer
Follow this Question
Related Questions
native android plugin 0 Answers
How to change Android navigation/status bar color? 0 Answers
Android - Trying to Load Library bug 0 Answers
Unity3D-Android Native Pop-ups/Sign-In 1 Answer
Create Android Menu Item (3 vertical dots and Back Arrow button) 0 Answers