Unity2017.1官方UGUI文档翻译——Button

Button

按钮

 The Button control responds to a click from the user and is used to initiate or confirm an action. Familiar examples include the  Submit and  Cancel buttons used on web forms.
按钮控件响应用户的点击,用于启动或确认一个动作。熟悉的例子是Web表单上使用的“提交”和“取消”按钮。

A Button.

A Button.

一个按钮

Properties

属性

Property:Function:
InteractableWill this component will accept input? See Interactable.
TransitionProperties that determine the way the control responds visually to user actions. See Transition Options.
NavigationProperties that determine the sequence of controls. See Navigation Options.
属性功能
Interactable这个组件是否会接受输入? 请参阅 Interactable.
Transition确定控件如何对用户操作进行可视化响应的属性。 请参阅Transition Options.
Navigation确定控件导航时对不同方向的响应。请参阅 Navigation Options.

Events

事件

Property:Function:
On ClickUnityEvent that is invoked when when a user clicks the button and releases it.
属性功能
On Click当用户单击按钮并释放它时调用的UnityEvent 

 

Details

详细

The button is designed to initiate an action when the user clicks and releases it. If the mouse is moved off the button control before the click is released, the action does not take place.

按钮用于在用户点击并释放它时触发一个action。如果鼠标在释放前已经移动到了button的外面,那么这个action不会发生

The button has a single event called On Click that responds when the user completes a click. Typical use cases include:

button只有一个名为On Click的事件,当用户完成点击时会响应。 典型的使用案例包括:

  • Confirming a decision (eg, starting gameplay or saving a game)
  • 确认一个决定(比如开始游戏、保存游戏)
  • Moving to a sub-menu in a GUI
  • 跳转到GUI中的一个子菜单
  • Cancelling an action in progress (eg, downloading a new scene)
  • 取消一个正在进行的动作(比如下载新的场景)

转载于:https://www.cnblogs.com/SolarWings/p/8185552.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值