Remote Engine Process
The editor renders its viewports in a separate engine process. That process can also run on another device. With an Android phone connected over USB, the editor can start its engine process on the phone, so you see your scene on real mobile hardware, in the device's texture formats and render path, while you edit it on your computer.
Starting It
- Connect the phone over USB with USB debugging turned on.
- In a scene viewport, click Activate Remote Process in the view toolbar.
- The Remote Connection dialog lists the phones
adbsees under DETECTED DEVICES, as Android · <device>. Click Start next to your phone. Refresh looks again.
The editor then:
- starts Fileserve on TCP port 1042 to serve the project's files to the phone,
- builds the engine process app for Android if there is none yet or it is older than the editor (this needs an engine source checkout; the first build takes a while),
- transforms the assets the scene needs for the project's Android asset profile, so the phone gets ASTC textures and the mobile pipeline,
- installs and starts the engine process on the phone and connects through the USB cable (
adbport forwarding), - sends the project to it. The first time, the phone loads every file through Fileserve, which takes a while.
The status bar shows each step. The phone then renders the active view. The editor sends the latest camera and settings about 30 times a second.
The Logcat Tab
While the engine process runs on a phone, the log panel has a Logcat tab next to Editor Log, Engine Log and Scripts. It shows the device log of the engine process, including native crash lines.
Connecting by Address
The BY ADDRESS section of the dialog connects to an engine process you started yourself on any device:
| Field | Description |
|---|---|
| Device IP Address: | The address of the device the engine process runs on. |
| File Server IP Address: | The address the engine process uses to reach Fileserve, typically the address of this computer as the device sees it. |
Launch Fileserve starts Fileserve on this computer. Connect connects. The recent-address buttons remember the last five addresses.
Limitations
- Picking (selecting objects by clicking in the view) is not available while the remote process renders.
- The project needs an Android asset profile. Without one, the phone gets the data of the active profile in formats it may not be able to read, and the log warns about it.
- An engine install without source code must already contain the engine process app for Android. Otherwise the editor reports This SDK has no engine process for Android ... and no engine source to build it.
Troubleshooting
| Problem | Cause and fix |
|---|---|
| No Android tools (adb) found. Set ANDROID_HOME to find Android devices. | Install the Android SDK and set ANDROID_HOME. |
| No devices. Connect an Android device over USB with USB debugging on. | Connect the phone, unlock it, allow USB debugging, then Refresh. |
| A device row is greyed out | The device is unauthorized or offline. Accept the debugging prompt on the phone. |
| The engine process could not be started on the Android device. See the log. | Read the Editor Log: the build of the engine process app or the install failed. |
| The engine process did not set up the project within 10 minutes. | Fileserve could not deliver the files. Check that Fileserve is running and nothing else uses port 1042. |