- Home /
Why do we need to use Managed and Native plugins in Unity?
Hi, I am trying to learn Unity, but it is getting harder and more complicated each day.
Especially my question is regarding the Android platform at this moment to keep it simple, but please don't be discouraged to post any comment for other platforms if you like.
My basic assumption is you is Unity native plugins for Android should be there if we need to gain the speed, like for the faster rendering. They are using so called NDK API as explained in the guide https://developer.android.com/ndk/guides/
On the other hand for things like creating a toast, or for setting the alarm clock, or for creating a Facebook share dialog where we typically use Intents we do not need to use Native plugins.
By definition Native plugins are those written in C or C++ programming language.
Technically, just by writing Unity C# code we can execute any Android Intent. We don't even need to create special Managed plugins for that, but would be a good practice, for later reuse.
For things like Toasts and Alerts, I assume we don't even need to create the so called Intents on Android, instead we can use the Existing Unity UI.
Lastly I am not sure if Unity already provides some Unity made Toasts like this one: https://docs.unity3d.com/ScriptReference/WSA.Toast.html , for Android? WSA should not be the exception.
Your answer
Follow this Question
Related Questions
Location of PlaybackEngines/AndroidPlayer/bin on a Mac to find classes.jar ? 1 Answer
PDF417 Barcode reader for iOS and Android 0 Answers
Control light with volume buttons? 1 Answer
why unity not resolving aar and jar files 0 Answers
How to write an AndroidManifest.xml combining different plugins? 3 Answers