Author Topic: Multiple camera-based scroll views interfere with clicks  (Read 5218 times)

mstevenson

  • Guest
Multiple camera-based scroll views interfere with clicks
« on: September 06, 2012, 06:23:50 PM »
I have two vertical UIDraggableCamera-driven scroll views, one stacked on top of the other. Inside each of these views is a vertical grid of buttons, each button containing a UIDragCamera script and a collider.

When I click and drag inside of the bottom list, the top list's camera moves. All clicks within the bottom camera view appear to be consumed by the UIDragCamera objects inside the top camera view.

How do I prevent this from occurring?

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Multiple camera-based scroll views interfere with clicks
« Reply #1 on: September 07, 2012, 12:15:03 AM »
Count time of touch or tap, from start touch or click;
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiple camera-based scroll views interfere with clicks
« Reply #2 on: September 07, 2012, 06:59:08 AM »
Wait I'm confused. You have two lists inside each other, or just beside one another? If it's the former, then I don't understand how that's supposed to work. If it's the latter, then it should be fine. UIDragCamera references only one camera, and that's the camera that will move. Do you have two UIDragCamera scripts on the same collider, perhaps?

mstevenson

  • Guest
Re: Multiple camera-based scroll views interfere with clicks
« Reply #3 on: September 07, 2012, 01:16:27 PM »
Thanks, I think I've solved it: I had a custom script that was interfering with one UIDragCamera's Draggable Camera property.

Also, I was referring to two scrollable lists that were vertically aligned, not overlapping (though that would be quite interesting!)