UISelectable

类位于 InfEngine.ui

继承自: InfUIScreenComponent

描述

可选择的 UI 元素基类。UIButton 的老爸。

description

属性

名称 类型 描述
interactable bool 是否可交互。 (只读)
transition UITransitionType 过渡类型。 (只读)
normal_color list 常态颜色。 (只读)
highlighted_color list 高亮颜色。 (只读)
pressed_color list 按下颜色。 (只读)
disabled_color list 禁用颜色。 (只读)
current_selection_state int (只读)

properties

公共方法

方法 描述
get_current_tint() → list Return the RGBA tint for the current visual state.
on_pointer_enter(event_data)
on_pointer_exit(event_data)
on_pointer_down(event_data)
on_pointer_up(event_data)

public_methods

生命周期方法

方法 描述
awake()

lifecycle_methods

示例

# TODO: Add example for UISelectable

example

另请参阅

see_also