Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: yuelun2000 on December 16, 2014, 12:57:49 AM

Title: I don't want UIPanel Clipping to clip child's UIPanel
Post by: yuelun2000 on December 16, 2014, 12:57:49 AM
Sometimes, I want to show a tips when hover on a gameObject.
When the gameObject is at the boundary of the Clipping, father's UIPanel Clipping will clip the tips.

Now,I use 3.7.6.
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: ArenMook on December 17, 2014, 02:55:33 PM
If you don't want nested clipping, then don't nest panels.
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: yuelun2000 on December 17, 2014, 09:47:35 PM
Don't add UIPanel on child gameObject? I tried this, but it seems doesn't work.
I used ver 2.3 before. I add a UIPanel on child gameObject.
When the child gameObject move out of UIScrollView's clip, I can also see the child gameObject.
This method don't work in new ver3.7.6.
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: ArenMook on December 19, 2014, 07:34:21 AM
Why does a child game object have a panel? Scroll view has a panel. That's all you should have. There shouldn't be any other panels.

Your original question doesn't match what you're saying in your last post, so now I'm confused...
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: yuelun2000 on December 23, 2014, 01:01:04 AM
Sorry,maybe I not say my question clearly.
In the picture, the gameObject 3 has a tips.
But the tips is clip a part by UIScrollView.

In the old version, add a UIPanel to the tips, I can see all of the tips.
But it doesn't work in the new version.
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: r.pedra on December 23, 2014, 06:56:12 AM
You can place your tip outside of the clipped panel and it won't be clipped.
Title: Re: I don't want UIPanel Clipping to clip child's UIPanel
Post by: ArenMook on December 23, 2014, 12:03:49 PM
Exactly what r.pedra said. Tooltip needs to be on its own panel that has higher depth than everything else.