UI Actions
UI Actions are a core feature of the UIView system that allow developers to link custom behaviors to the view's visibility transitions (fade in/out). These actions implement the IUIViewAction interface and are executed automatically whenever the UIView's visibility changes.
Lifecycle
- OnFadeIn: Called when the UIView becomes visible (fades in).
- OnFadeOut: Called when the UIView becomes hidden (fades out).
This provides a simple, event-driven way to manage UI behavior that needs to sync with the view's state.
Default Actions
UIViewActionEscape
This class allows you to push and pop a custom action(System.Action) into the InputEscapeManager in sync with the visibility of an UIView.
Constructor
Example
See Example: Multi Page UI for more detailed example.