- Home /
How to access the gyro in Unity? Who can offer me a detailed solution?
I need to use the data from the gyro in the Android phone. But it seems very troublesome to do it. Anyone can tell me how? Need to write a java? Where to put the java file? I want detailed code. Thank you.
Comment
Answer by fherbst · Sep 06, 2011 at 04:12 PM
The easiest way would possibly be to use a readymade plugin. Prime31 has one, but Prefrontal Cortex has one too which provides access to all sensors Android is capable of, so there would be no work left for you :).
You can find it in the forums: goo.gl/8ZIM7
Your answer
![](https://koobas.hobune.stream/wayback/20220612125438im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Does Input.gyro.attitude (always) use compass? 1 Answer
Why I can not enable compass (I gave it time to warm-up)? 0 Answers
How can I get the phone orientation? 3 Answers
GPS for Unity Android 1 Answer