I just see the instruction page that says “select a device to use in: Edit > Project Settings > Editor”. Nothing happens when I click play tho…
Edit: I’m working on a laptop. I saw there were people saying that it only worked for them when attached to motherboard USB, so idk if that is the issue…
I just installed Unity Remote 5, first time using it, and it worked perfectly first time from my laptop. What did you select in Project Settings? I chose “Any Android Device”. I had the app running on the device, then pressed Play in the Editor, and the UI “sort of” displayed on the device, but at a much lower resolution. I wonder about the value of this app? What is your goal? Seems to me it would be much preferred to just install the app on the device and test directly.
Unity Remote 5 can be a bit tricky at times (I use it most with a Mac / iOS combo). The most common problem I have found is if I start the game in the editor, then start Unity Remote, the remote device will not be found, and often cannot be found until both the computer and device are rebooted.
But start the remote first, then press play in the editor, I am mostly OK. I will just occasionally have to reselect the device in settings (do it while neither the game nor remote are playing).
The only other issue has always been there with Unity Remote 5 (Unity Remote 4 had no problem, I wish it still worked as an alternative). It takes a long time before the remote does anything, so I cannot test anything early in the game (a workaround for some situations is to build a big delay into the opening for testing so anything afterwards happens after the remote starts, but that is not suitable for all bugs).
I’ve struggled for 2 hours or so now and this stupid app is still just showing the pretty background without doing anything at all.
What I’ve tried:
Updated Unity to 2019.3.0f6
Made sure to install the modules for Android build with the SDK and the JDK selected
I’m unable to find “OEM drivers” or “Google Usb drivers” for OnePlus phones specifically. I AM however fully able to debug in chrome on this phone so I’m guessing the usb drivers are good to go.
My OnePlus5T shows up in adb devices (it’s authorized)
My phone is in USB debugging mode
The app shows “Select a device, Edit > Project settings > Editor”. It never shows anything else.
In the Unity editor I can only select “None” or “Any Android Device”. I left it on the latter.
Restarted Unity and pressed play
Restarted the App and pressed play
Restarted my computer and tried every combination of unplugging, replugging, restarting the app and restarting unity before pressing play.
Tried different usb slots.
Updated windows, another restart.
Tried every USB mode on the phone, PTP, File transfer, Midi, USB Tethering, “No file transfer”
Created a fresh empty project, did literally nothing except the project setting for remote devices “Any Android device”.
I’m getting annoyed and frustrated so I’m going to try the sleeping-and-hope-it-randomly-works-tomorrow tactic reported by someone else. Maybe I should try spinning three times in the direction of the sun on the brightest moon of the month and chant frantically while dressed in feathers wearing a green sandal on my head.
I can’t find anything more to try, Google is running out of suggestions, except showing me all the other people who were equally struggling.
In my case it only works if I launch Unity with the android device previously connected to the pc. If I connect it when Unity is already running it does not work.
Pretty buggie, I have had issues with it for the last, 5 years?
Slight update, some more things I tried that didn’t work:
Made sure the editor was allowed through windows firewall (no change)
Disabled the Windows Firewall completely (no change)
Tried installing different (?) usb drivers but windows refuses as “you have the best driver already”
Noticed the build settings can PERFECTLY FINE detect my device and load the game if I build
Found a post that said to disable arm64 from the target architecture settings (edit->project settings ->Player->“other settings”-> “Configuration” somewhere near that). No change.
Fiddled with different settings, like changing Scripting Backend to IL2CPP (no change), switching API compability level (no change), switching the android minimum/target API level (no change).
Tried switching the priority thingy for Graphics API to OpenGLES3, no change.
In the “Game” tab, up top left, there is a choice “Aspect free”, click that and select “Remote (Not Connected)”. No change.
Tried uninstalling Java (that one obscure stackoverflow answer). No change.
Sometimes I stop and stare into the air, then I remember that this is a quest for simplicity. Not sure why simplicity is so hard.
Hey! I don’t know if you fixed your issue by now, but i managed to get it to work by mixing a bunch of stuff i found :
First i had to uncheck the “Android SDK Tools Installed with Unity”, and then browse for the SDK folder (the default path is “C:/Program Files/Unity/Hub/Editor/YOUR UNITY VERSION/Editor/Data/PlaybackEngines/AndroidPlayer/SDK” if you downloaded the sdk through Unity Hub, else it can be where you put it when installing it).
Ounce that done, save your project and leave unity.
Now go through your file explorer and browse to the previous path (C:/Program Files/Unity/Hub/Editor/YOUR UNITY VERSION/Editor/Data/PlaybackEngines/AndroidPlayer/SDK), then go into “tools”, now copy the file “zipalign.exe”, and paste it into the “build-tools” folder, which is located in the previous folder.
Finally launch Unity remote (still in debugging mode), plug your phone, and launch unity. Hitting play will now display your project on your phone.
I don’t know what role that “zipalign” file has, but i guess it’s very important haha!
Hope it helped !
Hey!
I fixed same issue after struggling 2 days.
I’m not sure if it need’s all the chain but that’s what I’ve done.
Disable all the checkboxes of preferances/external tools(sdk,ndk,gradle), enable back, restart the workstation.
Hope this will help you all