Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jpm on August 18, 2012, 01:19:44 PM

Title: UITexture renders outside of UIDraggablePanel
Post by: jpm on August 18, 2012, 01:19:44 PM
I have dynamically created UITexture instances inside a UIDraggablePanel. When the UITextures are dragged out of UIDraggablePanel bounds, they are still visible. Other widgets (UISprites and UILabels) work fine, they aren't rendered when outside UIDraggablePanel bounds.

Is this a depth problem? I've tried setting the UITexture instance's depth to 0 but it still gets rendered above/outside of the UIDraggablePanel.

I hope there's a solution to this. Thanks in advance! :)
Title: Re: UITexture renders outside of UIDraggablePanel
Post by: ArenMook on August 18, 2012, 01:32:38 PM
You need to use Unlit/Transparent Colored shader, or clipping won't work. Alternative is for you to create your own clipping-enabled shaders for whatever shader you're using.
Title: Re: UITexture renders outside of UIDraggablePanel
Post by: jpm on August 20, 2012, 01:09:53 PM
Cool it worked! Thanks! :)