I’ve created an empty game object and, following the suggestion of several people in a few threads on here, attached the following script:
function Awake() {
iPhoneSettings.screenCanDarken = false;
iPhoneSettings.verticalOrientation = false;
}
But the parser’s telling me that neither ‘screenCanDarken’ nor ‘verticalOrientation’ are members of iPhoneSettings. The docs tell me otherwise-- any ideas?
Going to About->Unity gives me v1.0.0f1 and the unity iPhone logo. I do have both iPhone Unity and Unity 2 installed on here though, could there be some conflict there?
I should also mention that I have
iPhoneInput.multiTouchEnabled = true;
elsewhere in another script, but I don’t get any complaints from the compiler on that one.
No, the apps don’t intermingle (heck, I have Unity 1.6.2, Unity 2.1, Unity iPhone 1.0.1 plus other internal builds and I don’t get any errors.
Can you create a new project and test there? The cited code looks just fine so I’m wondering if you have errors elsewhere that are confusing the compiler (?).
Yeah, you likely have your own iPhoneSettings.js file somewhere, which will take precedence over the Unity class (Unity should really warn when this happens, every now and then someone does it with some class or another)…