public void Update()
if (Application.platform == RuntimePlatform.Android)
//quit application on return button
I cannot get this to work and I do not understand why. I have this in the Update Method and attached to an object in every scene. Back button does nothing, Console says nothing.
I have tried different variations, including just GetKey, GetKeyDown, etc. Nothing works. Please Help ASAP!
*Edit: Just like the ApplicationQuit(); the Back Button does not seem to be active during UnityEditor. I have to Build the Game and install it on my Android Device, then it works just fine.
So, this will not work in Unity Editor, you must build and install to see the effect.