Author Topic: Suggestion: Sliced Sprite's border can be written  (Read 1918 times)

Pilit

  • Guest
Suggestion: Sliced Sprite's border can be written
« on: January 18, 2013, 01:38:37 AM »
slicedSprite.border now is read only in script code, why not to be written.
when I have hundreds of same style png, I have to edit everyone's border in editor first. Poor me...
  1.                 UISlicedSprite sp;
  2.                 sp.spriteName = "SpriteName";
  3.                 sp.border = new Vector4(8.0f,8.0f,8.0f,8.0f);
  4.  
Making it possible to change in script code. Please!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Suggestion: Sliced Sprite's border can be written
« Reply #1 on: January 18, 2013, 04:20:21 AM »
Border is set in the atlas, not on the sprite.

Pilit

  • Guest
Re: Suggestion: Sliced Sprite's border can be written
« Reply #2 on: January 18, 2013, 05:19:32 AM »
Border is set in the atlas, not on the sprite.
UISlicedSprite can be a variable in Class, that to be instead of atlas' border. It is realized in the Class, right?