Author Topic: UITexture renders outside of UIDraggablePanel  (Read 2380 times)

jpm

  • Guest
UITexture renders outside of UIDraggablePanel
« 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! :)
« Last Edit: August 18, 2012, 01:21:22 PM by jpm »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture renders outside of UIDraggablePanel
« Reply #1 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.

jpm

  • Guest
Re: UITexture renders outside of UIDraggablePanel
« Reply #2 on: August 20, 2012, 01:09:53 PM »
Cool it worked! Thanks! :)