Public Member Functions | |
virtual void | SetCallbackHover (UnityAction< bool > onHover) |
void | OnPointerEnter (PointerEventData eventData) |
void | OnPointerExit (PointerEventData eventData) |
override void | OnHideBegin (System.Action callback) |
Raises the hide begin event. More... | |
override void | OnDeinit () |
Raises the deinit event. More... | |
Public Member Functions inherited from UnityEngine.UI.Windows.Components.ButtonWithTextComponent | |
void | SetValue (int value, TextComponent.ValueFormat format=TextComponent.ValueFormat.None) |
string | GetText () |
void | SetText (string text) |
Public Member Functions inherited from UnityEngine.UI.Windows.Components.ButtonWithImageComponent | |
void | SetImage (Sprite sprite, bool withPivotsAndSize=false) |
void | SetImage (Texture2D texture) |
Public Member Functions inherited from UnityEngine.UI.Windows.Components.ButtonComponent | |
void | SetEnabledState (bool state) |
void | SetDisabled () |
void | SetEnabled () |
void | Select () |
void | Deselect () |
override void | SetColor (Color color) |
virtual void | SetCallback (UnityAction callback) |
virtual void | SetCallback (UnityAction< ButtonComponent > callback) |
void | OnClick () |
Public Member Functions inherited from UnityEngine.UI.Windows.Components.ColoredComponent | |
virtual Color | GetColor () |
Public Member Functions inherited from UnityEngine.UI.Windows.WindowComponent | |
List< WindowComponent > | GetSubComponents () |
Gets the sub components. More... | |
WindowLayoutBase | GetLayoutRoot () |
Gets the layout root. More... | |
void | RegisterSubComponent (WindowComponent subComponent) |
Registers the sub component. More... | |
void | UnregisterSubComponent (WindowComponent subComponent) |
Unregisters the sub component. More... | |
override void | OnInit () |
Raises the init event. More... | |
override void | OnShowEnd () |
Raises the show end event. More... | |
override void | OnHideEnd () |
Raises the hide end event. More... | |
override void | OnShowBegin (System.Action callback) |
Raises the show begin event. More... | |
Public Member Functions inherited from UnityEngine.UI.Windows.WindowComponentBase | |
WindowObjectState | GetComponentState () |
Gets the state of the component. More... | |
void | Show (bool resetAnimation=true) |
Show component. More... | |
virtual void | Show (System.Action callback, bool resetAnimation) |
Show component with callback after end. More... | |
void | Hide () |
Hide this instance. More... | |
void | Hide (bool immediately) |
Hide the specified immediately. More... | |
virtual void | Hide (System.Action callback, bool immediately) |
Hide the specified callback and immediately. More... | |
void | SetResetState () |
Set up reset state to animation. More... | |
void | SetInState () |
Set up in state to animation. More... | |
void | SetOutState () |
Set up out state to animation. More... | |
virtual float | GetAnimationDuration (bool forward) |
Gets the duration of the animation. More... | |
Public Member Functions inherited from UnityEngine.UI.Windows.WindowObject | |
WindowBase | GetWindow () |
void | HideCurrentWindow () |
Public Member Functions inherited from UnityEngine.UI.Windows.Components.ITextComponent | |
void | SetValue (int value, UnityEngine.UI.Windows.Components.TextComponent.ValueFormat format=UnityEngine.UI.Windows.Components.TextComponent.ValueFormat.None) |
Public Attributes | |
ComponentEvent< bool > | onHover = new ComponentEvent<bool>() |
Public Attributes inherited from UnityEngine.UI.Windows.Components.ButtonWithTextComponent | |
Text | text |
Public Attributes inherited from UnityEngine.UI.Windows.Components.ButtonWithImageComponent | |
Image | image |
RawImage | rawImage |
Public Attributes inherited from UnityEngine.UI.Windows.Components.ColoredComponent | |
Image[] | images |
Public Attributes inherited from UnityEngine.UI.Windows.WindowComponent | |
bool | autoRegisterSubComponents = true |
Public Attributes inherited from UnityEngine.UI.Windows.WindowComponentBase | |
new WindowAnimationBase | animation |
List< TransitionInputParameters > | animationInputParams = new List<TransitionInputParameters>() |
CanvasGroup | canvas |
bool | animationRefresh = false |
Additional Inherited Members | |
Protected Attributes inherited from UnityEngine.UI.Windows.Components.ButtonComponent | |
Button | button |
|
virtual |
Raises the deinit event.
You can override this method but call it's base.
Reimplemented from UnityEngine.UI.Windows.Components.ButtonComponent.
Reimplemented in UnityEngine.UI.Windows.Components.ButtonWithTipComponent.
|
virtual |
Raises the hide begin event.
Wait while all sub components return the callback. You can override this method but call it's base.
callback | Callback. |
Reimplemented from UnityEngine.UI.Windows.WindowComponent.
void UnityEngine.UI.Windows.Components.ButtonHoverComponent.OnPointerEnter | ( | PointerEventData | eventData | ) |
void UnityEngine.UI.Windows.Components.ButtonHoverComponent.OnPointerExit | ( | PointerEventData | eventData | ) |
|
virtual |
ComponentEvent<bool> UnityEngine.UI.Windows.Components.ButtonHoverComponent.onHover = new ComponentEvent<bool>() |