UISprite

UISprite

  UISprite用于引用一个UIAtlas中的sprite。

  

  此脚本最强大的功能是Sprite Type,主要指定在需拉伸图片时的行为,它有以下几种值:

    1)Simple:普通拉伸。

    2)Sliced:九宫格拉伸,各边固定宽度通过Edit在UIAtlas中来指定。

    

    3)Tiled:一个接一个的平铺,就像铺砖一样。

    4)Filled:if you're doing a cooldown timer or a progress bar. 有多种Filled形式。

    

  The "Box Collider" option on the sprite so that the box collider auto-updates as you resize the sprite

  

参考:http://www.tasharen.com/forum/index.php?topic=6704

原文地址:https://www.cnblogs.com/tekkaman/p/3806592.html