Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tatelax on September 07, 2013, 12:59:49 PM

Title: Scrolling Texture
Post by: tatelax on September 07, 2013, 12:59:49 PM
Hi All,

I'm trying to make the sprite on my UISprite scroll, similar to adjusting the offset values on a material. How is this done?

Thanks,

-- Tate
Title: Re: Scrolling Texture
Post by: ArenMook on September 07, 2013, 11:02:43 PM
You can't do it with NGUI.
Title: Re: Scrolling Texture
Post by: Atmey on September 08, 2013, 01:24:34 AM
I understand you cannot do it using UISprite, what about using the UITexture?

My work around for a background, create a plane and add a scrolling texture on it.
Title: Re: Scrolling Texture
Post by: Atmey on September 08, 2013, 05:16:37 AM
Apparently it is achievable with a nice effect using the method I suggested:

Demo: (Keyboard only, click options)
https://dl.dropboxusercontent.com/u/2853559/WebDemos/ngui-animated-tiled-texture/WebBuild-8-9-2013.html

Sorry I can't share the source code as it is entangles with other stuff.
Title: Re: Scrolling Texture
Post by: ArenMook on September 09, 2013, 01:09:30 AM
Yup, with UITextures you're just working with materials, and this lets you do what you want.