Question by
DiegoWw · Jul 11, 2019 at 10:08 AM ·
unity remote
Is it possible to Programatically know if Unity Remote is active?
I know I can use "#if UNITY_EDITOR ... #endif" to add code especific to the Editor, but how do I know if Unity Remote specifically is active?
The reason I need to know this, is that I want to tilt my camera using the Gyroscope when I'm using Unity Remote, but use the mouse if I'm just in the Editor without Unity Remote active.
Comment
Best Answer
Answer by DiegoWw · Jul 11, 2019 at 10:12 AM
I have just found out. I needed to use "EditorApplication.isRemoteConnected" (might take a few seconds to become true).
Your answer
Follow this Question
Related Questions
The Unity 5.2 editor doesn’t show "Any iOS Devices" 0 Answers
How do I get unity remote 5 to work? 0 Answers
Unity Remote 5 Not Connecting 3 Answers
Set-up Android SDK path to make Android remote work 0 Answers