hello, I would like to identify when the iphone orientation is left or right. Can someone tell me what i am doing wrong? Thank very much, ~c
function FixedUpdate () {
if (iPhoneInput.orientation.LandscapeLeft) { print(“left”); }; if (iPhoneInput.orientation.LandscapeRight) { print(“right”); }; };
function FixedUpdate () { if (iPhoneInput.orientation == iPhoneOrientation.LandscapeLeft) print("left"); if (iPhoneInput.orientation == iPhoneOrientation.LandscapeRight) print("right"); }
Please use the iPhone Development section of the forums for all iPhone-related questions. Moving this thread in 3… 2… 1…