Author Topic: UIPanel and UIWidget interoperability  (Read 4619 times)

nguiman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
UIPanel and UIWidget interoperability
« on: April 10, 2014, 09:08:12 PM »
I have a UIPanel/UIGrid (no UIScrollview) under a UIWidget container, I'm using the panel's 'Soft Clip' to constrict the grid to within the widget as it scrolls. But I find that the panel (and all elements under it) flicker as it scrolls and the UILabels (dynamic fonts) for each item are illegible (looks like white boxes that flicker as well).

I tried separating each by depth, but that didn't solve the issue.

How can I resolve this? and what is causing it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel and UIWidget interoperability
« Reply #1 on: April 11, 2014, 07:15:40 AM »
Pic? Version of NGUI? There is no "Soft Clip" anymore in the latest.

nguiman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: UIPanel and UIWidget interoperability
« Reply #2 on: April 11, 2014, 12:40:01 PM »
v3.0.7 f2, and its unlikely I can upgrade since that could break other UI dependencies.

Attached is what I'm seeing, trying to translate the UIPanel/UIGrid in the inspector. The entire panel and content flickers on and off (and not necessarily together) when within the panel's visible non-clipped region.

I'm further having difficulty placing the UIPanel and its hierarchy over a UISprite.

Also where is Soft Clip being set now?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel and UIWidget interoperability
« Reply #3 on: April 12, 2014, 04:26:08 AM »
That explains a lot. 3.0.7 is extremely old. There's not much I can do if you can't upgrade. I release fixes every update.

nguiman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: UIPanel and UIWidget interoperability
« Reply #4 on: April 16, 2014, 02:18:35 PM »
are UIWidgets now able to Soft Clip? or has that feature been removed entirely?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel and UIWidget interoperability
« Reply #5 on: April 17, 2014, 10:54:49 AM »
Soft clipping is the only clipping shader that remains. It hasn't been removed, but the shaders have been renamed.