Unity API通读 UnityEngine.UI.Button

Button

一个标准的按钮组件 可以触发事件
UnityEngine类 继承自Selectable 实现接口IEventSystemHandler, IPointerClickHandler, ISubmitHandler

·属性
onClick
当按钮被按下是触发的事件

·公共方法
OnPointerClick
注册IPointerClickHandler回调
OnSubmit
注册ISubmitHandler回调

·继承成员
静态属性
allSelectables [Selectable]
属性
enable [Behaviour]
isActiveAndEnabled [Behaviour]
gameObject [Component]
tag [Component]
transform [Component]
runInEditMode [MonoBehaviour]
useGUILayout [MonoBehaviour]
hideFlags [Object][hold]
该对象的隐藏和保存是跟随场景还是由用户修改
name [Object]
该对象的名字
animationTriggers [Selectable]
animtor [Selectable]
colors [Selectable]
image [Selectable]
interactable [Selectable]
navigation [Selectable]
spriteState [Selectable]
targetGraphic [Selectable]
transition [Selectable]

官方文档 version 2018.3
https://docs.unity3d.com/ScriptReference/UI.Button.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值