Author Topic: Prefab rendering trouble with scroll view, please help!  (Read 1977 times)

Lando100

  • Guest
Prefab rendering trouble with scroll view, please help!
« on: November 20, 2012, 10:15:11 AM »
Hello peeps,

I have a UIGrid which i populate at runtime with button prefabs, The button consists of 3 UILabels and a UISprite, the UIGrid is a draggable panel which is a child of a UIPanel. So I want to get the clipping to work with my draggable grid with the prefabs inside of it but correct me if im wrong but I need a UIPanel script on the button to make the button children render? But because it has a UIPanel script on it, it wont be effected by the clipping of my draggable panel! At the moment Ive faked the clipping with the panel moving between two sprites but I would love to know how to do this properly.

Note: the button isnt a UIButton but an object with a collider.

If anyone has any suggestions it would be greatly appreciated, Thanks for any help in advanced

Lando
« Last Edit: November 20, 2012, 10:19:55 AM by Lando100 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Prefab rendering trouble with scroll view, please help!
« Reply #1 on: November 20, 2012, 03:37:35 PM »
No, don't add any extra panels or clipping won't work. Only widgets that are children of the clipped panel will actually be clipped.