Author Topic: how to drag a different object on click  (Read 6203 times)

bodosaher

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
how to drag a different object on click
« on: May 10, 2013, 11:26:36 AM »
So i want to link two objects
To make one static as it is and if its box collider gets clicked the other object will get clicked instead (or dragged or pressed etc)
I hope this makes sense

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: how to drag a different object on click
« Reply #1 on: May 11, 2013, 01:01:24 AM »
It doesn't quite make sense. However, if you are trying to forward events, either use UIForwardEvents, or change the pressed object manually -- UICamera.currentTouch.pressed (and possibly -- currentTouch.dragged). This is the object that receives OnDrag events.

bodosaher

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: how to drag a different object on click
« Reply #2 on: May 11, 2013, 04:15:19 AM »
You are a saint  ;D