UIFilledSprite类引用
Similar to a regular UISprite, but lets you only display a part of it. Great for progress bars, sliders, and alike. Originally contributed by David Whatley.More...

Public Types公共类型 | |
enum | FillDirection |
Public Member Functions公共成员函数 | |
override void | OnFill (BetterList< Vector3 > verts, BetterList< Vector2 > uvs, BetterList< Color > cols) |
Virtual function called by the UIScreen that fills the buffers. 虚函数调用的UIScreen填充缓冲区。 | |
Properties属性 | |
FillDirection | fillDirection [get, set] |
Direction of the cut procedure.
削减程序的方向。
| |
float | fillAmount [get, set] |
Amount of the sprite shown. 0-1 range with 0 being nothing shown, and 1 being the full sprite.
精灵的数量显示。0 - 1之间 0是没有显示出来,1是完整的精灵。
|
Detailed Description详细描述
Similar to a regular UISprite, but lets you only display a part of it. Great for progress bars, sliders, and alike. Originally contributed by David Whatley.
Member Function Documentation
成员函数文档
override void UIFilledSprite.OnFill | ( | BetterList< Vector3 > | verts, |
BetterList< Vector2 > | uvs, | ||
BetterList< Color > | cols | ||
) | [virtual] |
Virtual function called by the UIScreen that fills the buffers. 虚函数调用的UIScreen填充缓冲区。
Reimplemented from UISprite.从UISprite重新实现。
Property Documentation属性文档
float UIFilledSprite.fillAmount [get, set] |
Amount of the sprite shown. 0-1 range with 0 being nothing shown, and 1 being the full sprite.
FillDirection UIFilledSprite.fillDirection [get, set] |
Direction of the cut procedure.
削减程序的方向。
The documentation for this class was generated from the following file:这个类的文档生成从以下文件:
- Assets/NGUI/Scripts/UI/UIFilledSprite.cs