Touch Scrolling Example

I’ve put up an example project and explanation on how to scroll text using gestures. This example used OnGUI and GUI.x, so it’s only meant for not frame rate critical parts of your game. It includes testing for touches, glide when released and the bump and spring at the margins.

http://theantranch.com/Unity/Unity.html

Let me know what you think!

Hey…

terrific post. Really appreciate the lesson. Nicely written, great source. If you were a movie opening today, I’d give you two thumbs way up!

best,
B.

Thanks Little Angel.
This is great…
Been searching for a good tutorial on scrolling for the iphone.

I was trying to do it with the GuiManager, but had little luck…(im a real newbie at coding),but i guess if its in a separate scene from gameplay the draw calls dont mater much.

There were some problems for me in the sample scene to see all the buttons at the start screen, but after I changed the Y position in the script, it was all good.
(found out why…my screen was set to iphone wide instead of iphone tall)

Thanks again. :slight_smile:

Thank for share!!!

That great~~

cool! :stuck_out_tongue: