Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: foxracingteam on July 03, 2012, 10:54:56 AM

Title: UITexture in UIDraggablePanel not clipped
Post by: foxracingteam on July 03, 2012, 10:54:56 AM
I have a UIDraggablePanel similar to the bundled example Scroll View (Panel) but having some UITexture as Panel Contents. The UITexture doesn't get clipped as it goes beyond the edges. Other widgets (using Atlas texture) working fine instead.

I have quite a large amount of textures to load at runtime and looks like UITexture is my best (only) hope. Any hint?

Title: Re: UITexture in UIDraggablePanel not clipped
Post by: ArenMook on July 03, 2012, 02:15:16 PM
You need to use a shader that supports clipping. "Unlit/Transparent Colored" is one such shader as it has clipped versions -- "Unlit/Transparent Colored (SoftClip)" for example.
Title: Re: UITexture in UIDraggablePanel not clipped
Post by: foxracingteam on July 03, 2012, 08:48:48 PM
You need to use a shader that supports clipping. "Unlit/Transparent Colored" is one such shader as it has clipped versions -- "Unlit/Transparent Colored (SoftClip)" for example.

Arrr... didn't aware of that... Appreciate that!