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

UIFilledSprite是一种类似于UISprite的UI元素,允许仅显示其部分区域,适用于制作进度条和滑块等。它由大卫·Whatley贡献,并包含用于定义显示比例和方向的属性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值