fast and easy
Using native Java code in Unity is a lot easier and simpler than it is to use native iOS code. The reason for this is reflection and the nice wrappers we can use in C#.
the static library
This time I’ll create the same sort of test plugin from the previous tutorial but with a precompiled iOS library. This option is ideal if you intend to create a plugin and sell it in the Asset store because your code will remain invisible to users.
the c# bridge
Here’s a simple guide to writing your own Native Plugins for Unity mobile games. I’ll start with iOS plugins and the two main ways you can do it: writing a bridge to an native class or compiling a native static library.
Let’s use Reactive Extension to build something a bit more fun: a simple version of Space Invaders. We have twenty aliens distributed inside a 5×4 grid. The game object acting as the container for the aliens move across the screen back and forth and then slowly downwards.
another unirx example
Let’s build a simple breathing exercise app using Unity and UniRX. The application has has two elements, an input text field and a button. You enter a number in the input field and hit the button.