Author Topic: Texture Shifter  (Read 1654 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Texture Shifter
« on: September 25, 2014, 02:22:55 PM »
Hi,
I think I saw a texture with this shifter in a example scene a while a go.



It was a shader, somebody has this?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Texture Shifter
« Reply #1 on: September 25, 2014, 07:49:39 PM »
I made one for uGUI over a year ago. I never made this for NGUI. To do this in NGUI you have two options.

1. Use a UITexture (can't be a sprite) and animate its material in UIWidget.onRender.
2. Create a scroll view above the widget (possibly masked), and move a widget inside to create that effect.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Texture Shifter
« Reply #2 on: September 26, 2014, 07:48:03 AM »
Thanks Aren,
I'll try this.