Click and Drag Scripting

First Post so Hi All!

Ive just started to delv into the world of Games Development. Ive got a background in web development so was excited to see that unity used java.

Ive been building a basic game inside Unity Iphone and have got some simple game play mechanics mapped out but for the life of me i cannot get a simple click and drag function to work.

When ive looked at the manual regarding the iphoneinput it all goes straight over my head.

Ive noticed people mentioning the Dragrigidbody script in other posts, but i cant see this anywhere.

Id happily try to script and learn myself, but i just cant find any references…

Should i install Unity and do the unity tutorials before trying unity iphone?

Any help on the click and drag would be great,

I do believe that DragRigidbody script is part of standard unity package. Maybe not unity iPhone but still u can download Unity3d Indie which is now free.

Try this script. its simple but i u probably find it useful.

278581–9988–$drag_112.js (389 Bytes)

Thanks Tri.

I was getting slightly confused by some of the missing scripts etc in the iphone version.

Will go download the indie now :slight_smile: