Author Topic: "Clipped panels must have uniform scale, or clipping won't work properly"  (Read 6747 times)

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
I'm successfully populating a table with several items but when I try to scroll down all of the items blink off at once instead of being clipped.

I've tried to follow the steps from the FAQ (http://www.tasharen.com/forum/index.php?topic=6.msg11833#msg11833) but I'm not having any success.

I'm getting this error: "Clipped panels must have uniform scale, or clipping won't work properly" but I feel like the scale of the clipped panel is 1/1/1 and that should be fine. There's a "Auto-Fix" button that appears to do nothing.

I'm also unsure about the Unlit/Transparent Colored atlas step. I've set my "UIAtlas" shader to be Unlit/Transparent Colored" but I notice in the draw call listing that there are various Unlit/Transparent Colored draws and also UIAtlas draws. I'm not sure what this is supposed to indicate and if this is expected. I've linked an image.



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Check the scales of objects leading up to the panel. They also affect the scale.

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
Check the scales of objects leading up to the panel. They also affect the scale.

By "leading up to the panel" do you mean that in the following heiarchy, all of the items parenting "Sub Panel" should also have a scale of 1? what about their child items (ie. a button's background and label)? Also 1,1,1?

InventoryPanel
-->Background
-->ButtonCancel
-->ButtonAccept
-->View (empty thing with my own script)
-->-->Scroll Anchor
-->-->Sub Panel (Clipping UIPanel, UIDraggable Panel)
-->-->-->Table (UITable)

I've tried this but unfortunately it didn't have any effect.

What I'm seeing is that I have 4 items in this table and as soon as the top one is about to be clipped, all of the items disappear. On the bottom side of the clipping panel the items are able to pass through that below and the clipping fails, but they don't disappear.

What are some other things one could screw up that would make clipping stop working. Maybe I've done something insane in script?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
No. Up to, implying everything above the panel. From UIRoot to your panel.

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
No. Up to, implying everything above the panel. From UIRoot to your panel.

Oh nice. Yeah that worked. On a GameObject higher up the hierarchy I had a script that was modifying the scale but only the X and Y. I know now that I should modify the Z as well.


Thanks.