C# Class UIButton, Hero.Coli

Inheritance: UIElement
显示文件 Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
disabledColor Color

Public Methods

Method Description
OnHover ( bool isOver ) : void
OnPress ( bool isPressed ) : void
UpdateColor ( bool shouldBeEnabled, bool immediate ) : void

Update the button's color to either enabled or disabled state.

Protected Methods

Method Description
OnEnable ( ) : void

If the collider is disabled, assume the disabled color.

Method Details

OnEnable() protected method

If the collider is disabled, assume the disabled color.
protected OnEnable ( ) : void
return void

OnHover() public method

public OnHover ( bool isOver ) : void
isOver bool
return void

OnPress() public method

public OnPress ( bool isPressed ) : void
isPressed bool
return void

UpdateColor() public method

Update the button's color to either enabled or disabled state.
public UpdateColor ( bool shouldBeEnabled, bool immediate ) : void
shouldBeEnabled bool
immediate bool
return void

Property Details

disabledColor public_oe property

Color that will be applied when the button is disabled.
public Color disabledColor
return Color