Determine if Unity Remote is being used?

812 Views Asked by At

Is there a way to check if Unity Remote is being used in the editor? This doesn't seem to be working with Unity Remote 5?

1

There are 1 best solutions below

0
On BEST ANSWER

It appears that UnityRemote has a small delay before running your application, and UnityEditor.EditorApplication.isRemoteConnected is only true once it has detected that your application is successfully running on your device.

Initially I was checking whether a handheld device was connected in the Awake function, but because my application had not yet successfully started running on my device yet, it displayed as false.

The fix was therefore to instead test for this in the Update function.