Author Topic: How get move delta of touch?[SOLVED]  (Read 1405 times)

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
How get move delta of touch?[SOLVED]
« on: April 04, 2013, 11:46:08 PM »
Touch on screen ->Moving up  = delta pos Y ?

[SOLVED]
UICamera.genericEventHandler = this.gameObject;
..
..
  1.         void OnDrag (Vector2 delta)
  2. {
  3.                 if (enabled && UICamera.currentTouchID > -2)
  4.                 {
  5.                        deltaY = UICamera.currentTouch.totalDelta.y;
  6.                 }
  7. }
« Last Edit: April 05, 2013, 12:47:18 AM by PoN »
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.