When you use clipping on a panel, everything attached to that panel gets clipped...but you'll usually want to have a background of some sort...probably a tiledsprite. For example if we are making a floating window that has some scrollable elements in it. My question, for that background (or stuff that we don't want to get clipped) is it best to use another UIPanel or just attach the tiledsprite to an empty gameobject?
In the unity hierarchy we get something like...
Option A
- UIPanel that is just holding a tiledsprite
- UIPanel that is doing some fancy clipping on whatever other elements
Option B
- Empty Gameobject that has a tiledsprite child
- UIPanel that is doing some fancy clipping on whatever other elements
Which case should I use?