Author Topic: How to detect that my touch position is collided with sprite collider.  (Read 1702 times)

pawankumar113

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
How to detect that my touch position is collide with a particular sprite collider or not.
I want to make siding menu such as in have native android. I am using UIDragObject
but it is working when i press directly on that gameObject. i need like when i press on
corner of screen then gameobject(sidemenu) come at my finger position then i need to
identitified whether it is colliding with sidemenu or not.

Please see image for more details.

Any help will be appreciated.
Thanks.
« Last Edit: December 16, 2014, 07:55:28 AM by pawankumar113 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to detect that my touch position is collided with sprite collider.
« Reply #1 on: December 17, 2014, 03:03:24 PM »
All colliders will receive OnDragOver / OnDragOut notifications, so I suggest listening for those.