Author Topic: UITexture in UIDraggablePanel not clipped  (Read 4085 times)

foxracingteam

  • Guest
UITexture in UIDraggablePanel not clipped
« 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?


ArenMook

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

foxracingteam

  • Guest
Re: UITexture in UIDraggablePanel not clipped
« Reply #2 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!