Author Topic: Editing Items That Are Hidden In the Scroll View  (Read 1418 times)

DevMan5000

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 22
    • View Profile
Editing Items That Are Hidden In the Scroll View
« on: June 24, 2014, 11:52:27 PM »
Hi,

I have a scroll view with a list of 10 items. Only one item can be visible in the scroll view at a time while the rest of the items are occluded due to them being children of the scroll view.

This works great at runtime and props to NGUI devs for making this so easy to setup!

However, from a usability standpoint, I'm having trouble. In the editor, only the first item in the scroll view is visible and the rest are hidden. If I want to adjust elements on item 2, then I have to move item 2 from the Scroll View to the UIRoot to view it. Then after I am done, I have to move it back into the scroll view again. This is of course error prone and tedious.

I'm used to flash where you can click on an item in the library and it shows you that item in isolation, rather than that item in the context of the overall UI (hidden, offscreen, .etc).

I'm new to Unity so I am guessing I just don't know the trick. Any help would be appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Editing Items That Are Hidden In the Scroll View
« Reply #1 on: June 25, 2014, 07:26:12 AM »
Change the panel's clipping to Constrain but Don't Clip if you want to modify the contents, then switch the clipping back to what it was previously when you're done.

DevMan5000

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Editing Items That Are Hidden In the Scroll View
« Reply #2 on: June 25, 2014, 09:03:29 AM »
Thanks!!!