[Unity Remote] Connect the touch screen of the mobile device to the real machine to debug and synchronize the Unity editor screen (nanny-level hands-on teaching!)

1. Plug-in installation

1-1. Editor Unity Remote plug-in installation

We need to install the InputSystem plug-in first
. We open the PackageManager window (if you don’t know how to open it, see the previous article for a detailed explanation on how to install InputSystem), select InputSystem, click Samples in the property panel on the right, find Unity Remote, and click Import to import (the Import button will be displayed as Reimport after the import is successful
insert image description here
)
insert image description here

1-2. Mobile device installation Unity Remote

On the IOS side, you can directly search for Unity Remote in the App Store
insert image description here
and download it. On the Android side, you can search for Unity Remote in the Google store (requires technology and magic) or search
for the apk corresponding to Unity remote 5 on Baidu (online Baidu network disk and other resources are easy to find). Android needs to open the developer mode (Note
: The method of opening the developer mode is different for each model system, you can check how your mobile phone model is opened online) and click USB debugging or USB link (Note: Each different
UI The name is different, anyway, it is to open the permission of the USB connection )
After the mobile device Unity Remote is downloaded, use the data cable to connect the mobile device to the PC

2. Configuration adjustment

Now go back to the editor and open File => Build Settings to select the corresponding platform (same as the mobile device to be linked) and then open Editor => Project Settings to find the Editor (1-2. The Unity Remote Sample
insert image description here
in the editor will only be displayed after the installation is successful). We will select the Device on the Android device (if the option of IOS or
insert image description here
Android does not appear, it is because the Unity editor has not installed the module of the corresponding platform, and the first point of reference configuration adjustment will be displayed after installation and selection. If the corresponding platform is selected Unplug and re-plug the data cable before it appears) Adjust the following parameters according to your own needs (some people report that the picture connected to the mobile device is very blurry because the Resolution selects low resolution) The corresponding explanation of the Unity
insert image description here
Remote
parameters

Finally, we click start, and we can synchronize and operate the running scene in our editor on our mobile device.

3. Summary

3-1. IOS process

  1. Install the Unity Remote plug-in Sample in the Unity editor
  2. Download Unity Remote 5 from the App Store on the IOS side
  3. Data cable connects mobile device and PC
  4. Install and select the IOS development platform in the Unity editor
  5. Device select IOS in Unity Remote
  6. Click to start running to synchronize the mobile device and PC screen

3-2. Android process

  1. Install the Unity Remote plug-in Sample in the Unity editor
  2. Download Unity Remote 5 from Google Store on Android
  3. Open the developer mode of the Android system and enable the USE connection option
  4. Data cable connects mobile device and PC
  5. Install and select the Android development platform in the Unity editor
  6. Device select Android in Unity Remote
  7. Click to start running to synchronize the mobile device and PC screen

Guess you like

Origin blog.csdn.net/JavaD0g/article/details/131269392