Public Member Functions | |
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 | OnDeinit () |
Raises the deinit 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... | |
override void | OnHideBegin (System.Action callback) |
Raises the hide 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 Attributes | |
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 |
WindowLayoutBase UnityEngine.UI.Windows.WindowComponent.GetLayoutRoot | ( | ) |
Gets the layout root.
Basicaly it's the parent transform from current. But it's not always so. Sometimes you need to get layout element where this component (or it's parent) stored to play animation (for example).
List<WindowComponent> UnityEngine.UI.Windows.WindowComponent.GetSubComponents | ( | ) |
Gets the sub components.
|
virtual |
Raises the deinit event.
You can override this method but call it's base.
Reimplemented from UnityEngine.UI.Windows.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.Tabs, UnityEngine.UI.Windows.Components.PopupComponent, UnityEngine.UI.Windows.Components.ButtonComponent, UnityEngine.UI.Windows.Components.LinkerComponent, UnityEngine.UI.Windows.Components.InputFieldComponent, UnityEngine.UI.Windows.Components.ButtonHoverComponent, and 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.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.List, UnityEngine.UI.Windows.Components.LinkerComponent, UnityEngine.UI.Windows.Components.ProgressWithParticlesComponent, UnityEngine.UI.Windows.Components.ProgressComponent, and UnityEngine.UI.Windows.Components.ButtonHoverComponent.
|
virtual |
Raises the hide end event.
You can override this method but call it's base.
Reimplemented from UnityEngine.UI.Windows.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.LinkerComponent.
|
virtual |
Raises the init event.
You can override this method but call it's base.
Reimplemented from UnityEngine.UI.Windows.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.PopupComponent, UnityEngine.UI.Windows.Components.LinkerComponent, UnityEngine.UI.Windows.Components.ProgressComponent, UnityEngine.UI.Windows.Components.List, UnityEngine.UI.Windows.Components.Tabs, UnityEngine.UI.Windows.Components.ToggleComponent, UnityEngine.UI.Windows.Components.ButtonWithTipComponent, and UnityEngine.UI.Windows.Components.ProgressWithParticlesComponent.
|
virtual |
Raises the show 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.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.PopupComponent, and UnityEngine.UI.Windows.Components.LinkerComponent.
|
virtual |
Raises the show end event.
You can override this method but call it's base.
Reimplemented from UnityEngine.UI.Windows.WindowComponentBase.
Reimplemented in UnityEngine.UI.Windows.Components.LinkerComponent, and UnityEngine.UI.Windows.Components.ProgressWithParticlesComponent.
void UnityEngine.UI.Windows.WindowComponent.RegisterSubComponent | ( | WindowComponent | subComponent | ) |
Registers the sub component.
If you want to instantiate new component manualy but wants the window events - register this component here.
subComponent | Sub component. |
void UnityEngine.UI.Windows.WindowComponent.UnregisterSubComponent | ( | WindowComponent | subComponent | ) |
Unregisters the sub component.
subComponent | Sub component. |
bool UnityEngine.UI.Windows.WindowComponent.autoRegisterSubComponents = true |