Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lando100 on November 20, 2012, 10:15:11 AM

Title: Prefab rendering trouble with scroll view, please help!
Post by: Lando100 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
Title: Re: Prefab rendering trouble with scroll view, please help!
Post by: ArenMook 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.