hi,
I am trying to use gyroscope of the android device but unable to use the features through unity script.What could be the possible solution.
Here is the script…!!
void Update() {
Debug.Log (“gyro=” + Input.gyro.enabled);
Debug.Log (“useraccrl=” + Input.gyro.userAcceleration.normalized);
}
And the result is:
gyro=False
useraccrl=(0.0, 0.0, 0.0)
Though i have gyroscope and accelerometer in my mobile phone.!!
Thanks.
have you enabled the gyro?
in start add the line
Input.gyro.enabled = true;