public static class UISpriteExt { public static void Snap( this UISprite self ) { var data = self.GetAtlasSprite(); self.width = data.width ; self.height = data.height ; } }
var sprite = GetComponent<UISprite>(); sprite.Snap();
NGUIãããã©ã«ãã§ç¨æãã¦ãã MakePixelPerfect
ã¯
ã²ã¼ã ãªãã¸ã§ã¯ããéã¢ã¯ãã£ãã®å ´åã¯å®è¡ãããªãã®ã§
ãã¤ã§ã UISprite ã®å¤§ãããç»åãµã¤ãºã«åãããããããã«
ãã®æ¡å¼µã¡ã½ãããä½æãã¾ãã