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?
Asked
Active
Viewed 709 times
2
-
1Which version of unity are you using ? The code in the link that you referenced is fine BTW I am using Unity 2019.1.0f2 and Unity Remote 5 – AgentP May 27 '19 at 14:08
-
1Mind sharing some code? Maybe it´s something else – janavarro May 30 '19 at 06:38
-
@PraveenPanishetti I am using Unity 2019.1.2f1 – Daniel May 30 '19 at 07:52
-
1Are you able to play the game from the Unity remote i.e from your android device when its connected? – AgentP May 30 '19 at 08:04
-
@JoseAntonioNavarroMarco I just figured out where I was going wrong and I've submitted an answer. Thanks so much for your help! :) – Daniel May 30 '19 at 08:11
-
@PraveenPanishetti Yes it does work, but no worries, I've just figured out where I was going wrong and I've submitted an answer. Thanks so much for your help! :) – Daniel May 30 '19 at 08:14
1 Answers
1
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.

Daniel
- 447
- 5
- 22