Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Pilit on January 18, 2013, 01:38:37 AM

Title: Suggestion: Sliced Sprite's border can be written
Post by: Pilit 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!
Title: Re: Suggestion: Sliced Sprite's border can be written
Post by: Nicki on January 18, 2013, 04:20:21 AM
Border is set in the atlas, not on the sprite.
Title: Re: Suggestion: Sliced Sprite's border can be written
Post by: Pilit 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?