Author Topic: BleedTexture disappeared in latest version  (Read 2665 times)

golgoth77

  • Guest
BleedTexture disappeared in latest version
« on: July 23, 2013, 03:27:43 AM »
Hello,

The commented function BleedTexture in the UIAtlasMaker file was helpful to me.
As it have been removed in the latest version, have it been replaced with another feature ?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: BleedTexture disappeared in latest version
« Reply #1 on: July 23, 2013, 05:10:11 AM »
It's a built-in function in Unity 4.2, enabled by default on all textures. It was never used in NGUI (it was always left commented out), which is why it was removed. What are you using it for?
« Last Edit: July 25, 2013, 03:44:15 AM by ArenMook »

golgoth77

  • Guest
Re: BleedTexture disappeared in latest version
« Reply #2 on: July 25, 2013, 03:29:40 AM »
I'm using it to avoid some artifacts in my UI when the user changes screen resolution on Windows.

All my sprites have a border at 0. I could change that but be would require job in Photoshop I would prefer to avoid.

To tell you more, the artifacts occurs in the button bar at the top left corner of my window.
- Panel
 - Anchor [top-left, half pixel offset checked]
  - Dummy named "Buttons"
    - Button New at 0, 0
    - Button Undo at 74, 0
    - Button Pause at 148, 0
    - ...

Do you have an idea please ? I'm currently using the previous bleeding code to get the job done properly.



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: BleedTexture disappeared in latest version
« Reply #3 on: July 25, 2013, 03:44:57 AM »
Just upgrade to 4.2, it's a native function now. Select any texture, check "alpha is transparency", done.

golgoth77

  • Guest
Re: BleedTexture disappeared in latest version
« Reply #4 on: July 25, 2013, 03:55:10 AM »
Thanks !