Author Topic: Scroll view + buttons (Solved)  (Read 3044 times)

Yurik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Scroll view + buttons (Solved)
« on: February 08, 2013, 06:34:37 AM »
I have created a scrollview and filled it with buttons. When I try to scroll the scrollview by putting mouse on the button it doesn't work because of button collider. But it is not comfortable to put mouse between buttons to scroll. any ideas how fix it?
« Last Edit: February 08, 2013, 08:45:54 AM by Yurik »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view + buttons
« Reply #1 on: February 08, 2013, 08:28:51 AM »
Put the same script on the button as well.

Yurik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Scroll view + buttons (Solved)
« Reply #2 on: February 08, 2013, 08:45:01 AM »
Yes! But the button changes it's style while i am dragging it. But it is not problem to run "on press effect" in OnClick function.
Thank you very much.

no-tec

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Scroll view + buttons (Solved)
« Reply #3 on: February 19, 2014, 03:04:48 AM »
Trying to do the same thing here, but the buttons are actually prefabs getting loaded into the scrollview. This means I can't connect the "ScrollView" [from the UIDrag Scroll View Script] to it's ScrollVeiw parent. Any ideas? Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view + buttons (Solved)
« Reply #4 on: February 19, 2014, 12:39:44 PM »
It gets done automatically as long as the script can be found on a parent object.

no-tec

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Scroll view + buttons (Solved)
« Reply #5 on: February 22, 2014, 09:53:15 PM »
Great! Thanks for the help. I seem to have trouble being able to drag the scrollview when I click+drag over a button (It just activates the button and the view wont drag) Are there any special perams I'm missing here?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view + buttons
« Reply #6 on: February 23, 2014, 12:15:51 PM »
Put the same script on the button as well.