C# Class UIButtonColor, Hero.Coli

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

Public Properties

Property Type Description
duration float
hover Color
pressed Color
tweenTarget GameObject

Protected Properties

Property Type Description
mColor Color
mHighlighted bool
mStarted bool

Public Methods

Method Description
OnDisable ( ) : void
OnHover ( bool isOver ) : void
OnPress ( bool isPressed ) : void
Start ( ) : void

Protected Methods

Method Description
Init ( ) : void
OnEnable ( ) : void

Method Details

Init() protected method

protected Init ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() protected method

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

Start() public method

public Start ( ) : void
return void

Property Details

duration public_oe property

Duration of the tween process.
public float duration
return float

hover public_oe property

Color to apply on hover event (mouse only).
public Color hover
return Color

mColor protected_oe property

protected Color mColor
return Color

mHighlighted protected_oe property

protected bool mHighlighted
return bool

mStarted protected_oe property

protected bool mStarted
return bool

pressed public_oe property

Color to apply on the pressed event.
public Color pressed
return Color

tweenTarget public_oe property

Target with a widget, renderer, or light that will have its color tweened.
public GameObject tweenTarget
return GameObject