Author Topic: unity 5.5.0 scrollview  (Read 3139 times)

dakso

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
unity 5.5.0 scrollview
« on: December 28, 2016, 08:57:01 PM »
I was update Unity 5.5.0

scrollview not clipping other atlas sprite before leaving the clipping area.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unity 5.5.0 scrollview
« Reply #1 on: December 31, 2016, 07:37:51 AM »
You'll need to be a lot more descriptive for me to understand the issue. Everything clips fine here. Check whatever sprite you see not clipping and look at its atlas' material. Make sure it uses an NGUI shader.

dakso

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: unity 5.5.0 scrollview
« Reply #2 on: January 01, 2017, 11:20:15 PM »
The shader was not properly inserted. Thank you.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: unity 5.5.0 scrollview
« Reply #3 on: January 04, 2017, 12:11:48 PM »
Hi,

I have updated to unity 5.5.0 (NGUI 3.11.0b) and ScrollViews don´t clip sprites that use Reference Atlas.
The Sprite disappears when all the content moves out the panel but the clip effect is lost.
Sprites that use Normal Atlas still clip right.

Any idea?
Thanks.
Game developer on Casual Arena.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unity 5.5.0 scrollview
« Reply #4 on: January 05, 2017, 09:43:11 AM »
Open UIDrawCall.cs and uncomment the show hidden objects draw call define up top. This will let you select all draw calls NGUI creates, so you will be able to see what shader is being used by the draw calls that don't clip.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: unity 5.5.0 scrollview
« Reply #5 on: January 09, 2017, 06:10:23 AM »
The shader that doesn´t clip properlly is Unlit/Transparent Colored.

But the problem is that it only is hidden when the sprite is completely out of the UIPanel.

I attach an image that shows it.

Game developer on Casual Arena.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: unity 5.5.0 scrollview
« Reply #6 on: January 09, 2017, 07:24:35 AM »
Fixed.

AssetBundles must be rebuild after update Unity 5.5.0.
Game developer on Casual Arena.