Version: 2020.1
public int alignment ;

描述

精灵图形的边缘相对对齐。

可能的值与 SpriteAlignment 枚举相关,如下所示:

Center = 0、TopLeft = 1、TopCenter = 2、TopRight = 3、LeftCenter = 4、RightCenter = 5、BottomLeft = 6、BottomCenter = 7、BottomRight = 8、Custom = 9。

另请参阅:SpriteAlignment 枚举。