Author Topic: what kind of unit is the delta of OnDrag (delta) in?  (Read 2392 times)

rocman

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
what kind of unit is the delta of OnDrag (delta) in?
« on: March 16, 2014, 05:40:09 AM »
when i test in my cell phone, the delta seems not count by pixel

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: what kind of unit is the delta of OnDrag (delta) in?
« Reply #1 on: March 16, 2014, 12:14:51 PM »
It's in virtual pixels as defined by the activeHeight on the UIRoot. Essentially, the values you use with localPosition.