1
NGUI 3 Support / Bizzarre UISprite/Label behavior. Content outside frames till refresh
« on: October 16, 2014, 06:23:19 PM »
Hi guys
So I have a UIGrid that has contents.
UIGrid
-- 0
-- 1
The content structure looks like this
UIWigdet
---UITexture
---GameObject
---UIPanel
---Children
---UIPanel(***This UIPanel seems to create all kinds of problems)
---UILabel
---UISprite
The clipping on the problematic UIPanel is set to None. I have it there only cause of depth reasons. I need the UILabel and UISprite to be on top of the first UIPanel.
Now the problem is when I add a second entry to the UIGrid, the UILabel and UISprite on the second entry are completely off. Note that their location is correct, meaning if you were to select the UILabel or UISprite in Unity editor, the bounds as indicated by Ngui's blue dots seem to be in the correct place. However their content is off of this outlined bounds. The moment there is any sort of refresh, by resizing the Game window, Grid's execute or UIScrollView's Reset clipping plane, the contents shift to their proper position.
Any thoughts if this is a bug? Whats going on?
Thanks
So I have a UIGrid that has contents.
UIGrid
-- 0
-- 1
The content structure looks like this
UIWigdet
---UITexture
---GameObject
---UIPanel
---Children
---UIPanel(***This UIPanel seems to create all kinds of problems)
---UILabel
---UISprite
The clipping on the problematic UIPanel is set to None. I have it there only cause of depth reasons. I need the UILabel and UISprite to be on top of the first UIPanel.
Now the problem is when I add a second entry to the UIGrid, the UILabel and UISprite on the second entry are completely off. Note that their location is correct, meaning if you were to select the UILabel or UISprite in Unity editor, the bounds as indicated by Ngui's blue dots seem to be in the correct place. However their content is off of this outlined bounds. The moment there is any sort of refresh, by resizing the Game window, Grid's execute or UIScrollView's Reset clipping plane, the contents shift to their proper position.
Any thoughts if this is a bug? Whats going on?
Thanks