Author Topic: i have a problem: items in UIScrollView with particles..  (Read 7177 times)

woshihuo12

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
i have a problem: items in UIScrollView with particles..
« on: July 15, 2014, 12:25:20 AM »
i have some items in a UIScrollView and the items attached with some particles...to let particles show,i changed particles RQ (4000)..but when i scroll items. the hide items's particles still can show...
so what can i do to hide particles with hidden items..

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: i have a problem: items in UIScrollView with particles..
« Reply #1 on: July 15, 2014, 12:57:30 AM »
NGUI does clipping by using special shaders. You won't be able to make particles clip unless you write special shaders first. Have a look at the difference between "Unlit - Transparent Colored" and "Unlit - Transparent Colored 1" shaders, for example.

woshihuo12

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: i have a problem: items in UIScrollView with particles..
« Reply #2 on: July 15, 2014, 07:03:52 AM »
NGUI does clipping by using special shaders. You won't be able to make particles clip unless you write special shaders first. Have a look at the difference between "Unlit - Transparent Colored" and "Unlit - Transparent Colored 1" shaders, for example.

the clip panel use the shader "Unlit - Transparent Colored 1 " ??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: i have a problem: items in UIScrollView with particles..
« Reply #3 on: July 15, 2014, 09:38:39 PM »
The panels replace shaders with their clipped version only for NGUI's widgets. Particles are not NGUI's widgets.

zzzz0000aa

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: i have a problem: items in UIScrollView with particles..
« Reply #4 on: June 29, 2016, 09:12:10 PM »
Same problem,How to solve it ,now?Can you help me?