Author Topic: UIStretch & Scroll View Clipped Panel  (Read 2946 times)

Naethyn

  • Guest
UIStretch & Scroll View Clipped Panel
« on: June 11, 2013, 11:16:01 AM »
I am trying to create a scroll view that is relative to the screen size.  If I add a UIStretch script to any panel that is a parent or super parent of my clipped panel it shows an error in the inspector saying "Clipped panels must have uniform scale, or clipping won't work properly".  As soon as I remove the stretch script and set the panels back to (1, 1, 1) the error goes away.  How do I make a scroll view that is relative to the screen size if all panels above it need to be (1, 1, 1)?

Any help is appreciated,

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIStretch & Scroll View Clipped Panel
« Reply #1 on: June 11, 2013, 03:37:20 PM »
UIStretch is meant to stretch widgets, not panel clipping. You need to adjust the clipping rect yourself based on screen size.

Naethyn

  • Guest
Re: UIStretch & Scroll View Clipped Panel
« Reply #2 on: June 11, 2013, 04:13:45 PM »
OK Thanks