- Home /
Question by
Melih Şimşek · Mar 29, 2013 at 02:30 PM ·
orientation
Unity - Transform.Position with Android Device Orientation?
How can ı do that? Any idea?
Comment
Best Answer
Answer by psycocrusher · Mar 30, 2013 at 12:34 AM
function Update(){
if (-Input.acceleration.y >0.075){
//Do Something
}
if (Input.acceleration.y >0.075){
//Do Something
}
}
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Unity in iOS Tab Bar Controller Orientation Issue 0 Answers
Android: How do I force only portrait orientation? 3 Answers
Reorient the construction worker 0 Answers