|
Hey again all. I have a click drag script here that runs fine otherwise and doesn't produce errors but once I get the game on my iphone it just doesn't work. Any one have an idea why? Here's the code. C#....
As always, thank you for the help!
(comments are locked)
|
|
You cannot use mouse controls on your iPhone, but has to use touch events instead. The touch events can be read from the Input class. http://unity3d.com/support/documentation/ScriptReference/Input-touches.html This means that you have to code the "mouse drag" functionality yourself. I redid the code and now I can click and drag.
Apr 18 '11 at 02:39 AM
Earth-O-Matic
(comments are locked)
|
|
Here is the code if anyone is interested. I'm still having trouble with stopping the drag and doping the object when I lift my finger. This is just the drag code I used. I'm using a modified version of this code currently to touch and drop - no drag. Would like drag though if I can figure it out or someone else can chime in.
(comments are locked)
|
