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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章