Author Topic: I don't want UIPanel Clipping to clip child's UIPanel  (Read 6311 times)

yuelun2000

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 3
    • View Profile
I don't want UIPanel Clipping to clip child's UIPanel
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #1 on: December 17, 2014, 02:55:33 PM »
If you don't want nested clipping, then don't nest panels.

yuelun2000

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #3 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...

yuelun2000

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #4 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.

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #5 on: December 23, 2014, 06:56:12 AM »
You can place your tip outside of the clipped panel and it won't be clipped.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I don't want UIPanel Clipping to clip child's UIPanel
« Reply #6 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.