- Home /
NO Gyro on iPhone 4S
I'm running the following code with Unity 3.5.5 on an iPhone 4S iOS 5.1.1.
"NO Gyro" keep being printed on the iPhone 4S, am I doing something wrong?
private var gyroBool : boolean;
private var accelBool : boolean;
function Start () {
	// make landscape view
	Screen.orientation = ScreenOrientation.LandscapeLeft;
	//Setup controls
gyroBool = SystemInfo.supportsGyroscope;
accelBool = SystemInfo.supportsAccelerometer;
}
function OnGUI () {
	if(gyroBool){
		GUI.Label (Rect (10, 70, 200, 20), "Has Gyro");	
	}
	else {
		GUI.Label (Rect (10, 70, 200, 20), "NO Gyro");	
	}
}
Comment
Your answer
Follow this Question
Related Questions
New Gyroscope Controls in Unity 4? 2 Answers
Using Gyroscope with Android 1 Answer
How to transform local space to world GYRO space on ios? 0 Answers
Input.gyro.attitude Accuracy 1 Answer
External gyroscope question 1 Answer