Hi,
my hierarchy is built like this:
"Panel" (UIPanel with clipping + UIScrollView)
+ "Sprite" (UIDragScollView + Box Collider + UIWidget)
++ "Stuff 1"
++ "Stuff 2"
++ ...
Thing is, NGUI complains with:
Widgets and panels should not be on the same object! Widget must be a child of the panel.
UnityEngine.Debug:LogError(Object, Object)
UIWidget:OnStart() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1042)
UIRect:Start() (at Assets/NGUI/Scripts/Internal/UIRect.cs:430)
But isn't it? Or does UIDragScrollView count as a Panel?!
EDIT:
Got it. I have it that when I click the "Stuff" buttons, I use a manual call to SpringPanel.Begin() to position the "Sprite". In that moment, a UIPanel gets added and NGUI complains.
When I use a manual transform.position = newPos, there's no problem.
NGUI misbehavior or should I set my stuff up differently?