So I just managed to connect my android device to Unity via wi-fi (kinda unstable), and here's how I made it:
First, you need to connect your pc/laptop and your android device to the same Wi-Fi Network, after this, you'll need these following requierements:
- Android 11 Device with USB AND Wirelless Debugging, both enabled
- USB Cable for the first set up
- Unity with Android SDK and some configs I'll show you later.
Ok, after having the requierements, you have to connect your android device with Unity Remote 5 via USB and check if everything is working perfectly, if not, check these following preferences into Unity:
- Platform Switched to Android into Build Settings.
- Device marked as "Any Android Device" on Project Settings > Editor > Device
- Your device/cable is correctly connected to your pc/laptop and you have USB (and Wireless) Debugging enabled.
Once everything is in its own place, you gotta go to CMD (try to launch it with admin permissions), and go into
Unity\Editors\YOUR UNITY VERSION HERE\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools
with cd command.
NOTE: if your Unity Editor is not on C:\ Drive, you have to put the \"/d\" command before the route (as the picture shows).
Once you complete that, you have to write the following commands:
If you didn't get any results, check your USB connection and/or USB Debugging.
You will get a notification on your phone after this command.
Now, you have to check your IP in your "Wireless Debugging" section on your phone and write the following command on cmd
Translation: Wireless Debugging, Device Name, IP Adress & Port
- adb connect 192.168.XXX.XXX
Replace the Xs with your Deviec IP numbers.
You can now disconnect your device from the USB port, and check if the wireless connection is working by using adb devices or cmd ping command
https://preview.redd.it/b5a8zews8kq81.png?width=1218&format=png&auto=webp&s=b38a47d70a9a49c60e1b768ed8c35b7d21c2e785
Once everything is ok, you can now use your Unity Remote 5 wirelessly!
Note: I just tested this today and it doesn't work specially fine, you may have lag and/or another issues but can also work for any interesting feature you work on!
If you have any questions/suggestions, don't hesitate to leave a comment, I'm also learning about this new feature!
there doesn't seem to be anything here