Difficultly using a HorizontalSlider inside of Unity iPhone

hey all,

sorry for something so simple. I am just getting started.

i wanted to drag a finger to rotate something on iphone.

I started with this script and it is a slider that works with a mouse but not on my iphone. can anyone point me in the right direction?

private var hSliderValue : float;
function OnGUI () {
hSliderValue = GUI.HorizontalSlider (Rect (100, 100, 100, 100), hSliderValue, 0.0, 10.0);
}

much thanks,
~c

I don’t see why your script wouldn’t work on the iPhone. Are you building it, or are you using the remote?

you may try using

function Awake(){
iPhoneSettings.verticalOrientation = false;
}

to set the orientation to horizontal if this is how it shows up on your iPhone when using the remote.

Your code, copied and pasted into Unity iPhone on my end works through the remote (didn’t make a build yet though).

Are you sure that there aren’t other complicating factors?

Oh, and I’m moving this to the iPhone Development area in 3… 2… 1…

Edit: as part of standard web forum etiquette please use thread subjects that reflect something about what you’re having trouble with or asking about. Your title offers zero indication as to the question you’re asking and as such isn’t likely to attract the right attention. I’m editing your post before moving.

ok, sorry.
I will get it together.
thanks again,
cp