NGUI v2.0 UI_4:UIFilledSprite UI填充精灵类

来源:互联网 发布:终结者2 知乎 编辑:程序博客网 时间:2024/06/04 22:47
UIFilledSprite Class Reference

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...

Inheritance diagram for UIFilledSprite:
类似于普通UISprite,而且让你只显示它的一部分。伟大的进度条,滚动条和相似。最初由大卫·Whatley贡献。更多…   
 
继承关系图UIFilledSprite:
 
 

List of all members.

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.

类似于普通UISprite,而且让你只显示它的一部分。伟大的进度条,滚动条和相似。最初由大卫·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.

精灵的数量显示。0 - 1之间         0是没有显示出来,1是完整的精灵。

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
原创粉丝点击