ADb set up how to make it so that when you start the game in the editor, she immediately opened it in the phone, that is, clicked Play on the unit, and the game started through debugging on the phone and the actions were repeated:

    1 answer 1

    • On the phone in the Developer Options settings (if opened under the root) we find the Debugging option - Android debugging
    • Download on your UnityRemote 5 phone (via google play) and install it
    • On the PC, install the Android SDK and JDK. The second does not seem to be necessary, but just in case
    • In Unity in EditPreferencesExternal Tools path to the Android SDK and JDK
    • In Unity, in EditProject SettingsEditor you set Unity Remote to Any Android Device .
    • In Unity, under FileBuild Settings , you add your scene and switch the platform to Android.
    • Now you connect the phone to the PC, on the phone you launch UnityRemote and while it is running in Unity you press Play
    • Thanks for the answer, I have a VR project, when switching to Any Android Device, the 360-degree movement simply simply does not work, neither in the editor nor in the phone, that is, the accelerometer does not plow at all - GR1995
    • Try to start a simple code to write and connect debugging. If everything works, then most likely the problem is in the code and we must look at it - Aleksey Shimansky
    • I solved the problem from this topic, thanks for the tip. answers.unity3d.com/questions/985989/… - GR1995
    • @KostyaLikhachev by the way, you can create another question with the emphasis on the fact that debugging fails with VR and Cardboard SDK and answer your question immediately by translating the answer from that link (indicating the source). That it was useful to all - Alexey Shimansky