Author Topic: [SOLVED] UIDraggablePanel's clipping panel slides along with the contents  (Read 7537 times)

tydygunn

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Hi all, you've compiled a great product here and it's been very much worth the purchase!

I'm having an issue with a draggable panel I've set up. It's nested properly I think:

UI Camera > Anchor > Empty "Folder" GameObject > UIPanel > UIDraggablePanel > UIGrid/UIDragPanelContents > Buttons with UIDragPanelContents

The scroll bar works fine, the contents scroll along when I drag and clip within the clipping bounds like they're supposed to. The issue is that the clipping bounds is moving in the direction that I'm dragging the contents. I've attached two pictures of the issue. The clipping area is outlined in purple and moves as I scroll the assets.

Is there something obvious I'm doing wrong here? Is there a possible workaround? Thanks for any advice and thanks for a great product!
« Last Edit: January 09, 2013, 03:49:40 PM by tydygunn »

seandanger

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 32
    • View Profile
    • Bit By Bit Studios
Re: UIDraggablePanel's clipping panel slides along with the contents
« Reply #1 on: January 09, 2013, 02:23:59 PM »
Just a guess, but try putting your UIPanel and UIDraggablePanel components on the same GameObject, instead of separately nested.  Does that help?

tydygunn

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: UIDraggablePanel's clipping panel slides along with the contents
« Reply #2 on: January 09, 2013, 02:43:01 PM »
Thanks for the reply!

The UIPanel that is actually doing the clipping is also the same object that has the UIDraggablePanel script on it. Pic below...

Could if be that the parent of this object also has a UIPanel? I tried removing that component but it didn't solve the issue so I put it back on.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

tydygunn

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: UIDraggablePanel's clipping panel slides along with the contents
« Reply #4 on: January 09, 2013, 03:48:54 PM »
Excellent, that was exactly it!

Specifically in case anyone is having this issue my scales had gone arwy at some point and some of the parent objects were a larger scale than 1, 1, 1