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