Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonActivatableWidget.h |
Include |
#include "CommonActivatableWidget.h" |
UCLASS(Meta=(DisableNativeTick))
class UCommonActivatableWidget : public UCommonUserWidget
The base for widgets that are capable of being "activated" and "deactivated" during their lifetime without being otherwise modified or destroyed.
This is generally desired for one or more of the following purposes:
This widget can turn on/off without being removed from the hierarchy (or otherwise reconstructing the underlying SWidgets), so Construct/Destruct are insufficient
You'd like to be able to "go back" from this widget, whether that means back a breadcrumb, closing a modal, or something else. This is built-in here.
This widget's place in the hierarchy is such that it defines a meaningful node-point in the tree of activatable widgets through which input is routed to all widgets.
By default, an activatable widget:
Is not automatically activated upon construction
Does not register to receive back actions (or any other actions, for that matter)
If classified as a back handler, is automatically deactivated (but not destroyed) when it receives a back action
that removing an activatable widget from the UI (i.e. triggering Destruct()) will always deactivate it, even if the UWidget is not destroyed. Re-constructing the underlying SWidget will only result in re-activation if auto-activate is enabled. TODO: ADD MORE INFO ON INPUTS
Name | Description | ||
---|---|---|---|
|
ActivatedVisibility |
||
|
bAutoActivate |
True to automatically activate upon construction |
|
|
bIsBackActionDisplayedInActionBar |
True to receive "Back" actions automatically. |
|
|
bIsBackHandler |
True to receive "Back" actions automatically. |
|
|
bIsModal |
True to have this widget be treated as a root node for input routing, regardless of its actual parentage. |
|
|
bSetVisibilityOnActivated |
||
|
bSetVisibilityOnDeactivated |
||
|
bSupportsActivationFocus |
True if this widget is a candidate to receive/route focus or specify a desired UIInputConfig when active. |
|
|
DeactivatedVisibility |
||
|
If |
false |
True to prefer automatically restoring focus to the widget that was focused when this widget last became the non-leafmost-active-widget. |
Name | Description | ||
---|---|---|---|
|
ActivateWidget() |
||
|
AutoRestoresFocus() |
||
|
BindVisibilityToActivation ( |
Bind our visibility to the activation of another widget, useful for making mouse collisions behave similiar to console navigation w.r.t activation Will immediately update visibility based on the bound widget activation & visibilites set by SetBindVisibilities. |
|
|
UWidget *... |
BP_GetDesiredFocusTarget() |
Implement to provide the desired widget to focus if/when this activatable becomes the primary active widget. |
|
BP_OnActivated() |
||
|
BP_OnDeactivated() |
||
|
BP_OnHandleBackAction() |
Override in BP implementations to provide custom behavior when receiving a back action |
|
|
ClearActiveHoldInputs() |
||
|
DeactivateWidget() |
||
|
GetDesiredCameraConfig() |
COMMONUI_SCOPE: |
|
|
UWidget *... |
GetDesiredFocusTarget() |
Returns the desired widget to focus when this Widget Activates. |
|
If we simply... |
GetDesiredFocusTarget() |
|
|
GetDesiredInputConfig() |
Gets the desired input configuration to establish when this widget activates and can receive input (i.e. all parents are also active). |
|
|
HandleBackAction() |
||
|
InternalProcessActivation() |
||
|
InternalProcessDeactivation() |
||
|
IsActivated() |
||
|
IsModal() |
||
|
UWidget *... |
NativeGetDesiredFocusTarget() |
Override to provide the desired widget that should receive focus when this becomes the primary active widget. |
|
NativeOnActivated() |
||
|
NativeOnDeactivated() |
||
|
NativeOnHandleBackAction() |
||
|
FSimpleMulti... |
OnActivated() |
|
|
FSimpleMulti... |
OnDeactivated() |
|
|
FSimpleMulti... |
OnRequestRefreshFocus() |
|
|
FSimpleMulti... |
OnSlateReleased() |
|
|
RegisterInputTreeNode ( |
||
|
RequestRefreshFocus() |
Ask for focus to be re-set to our current DesiredFocusTarget, but only if our node is currently the leaf-most active node (no stealing!). |
|
|
Reset() |
||
|
SetBindVisibilities ( |
Visibilities to use for when bound widgets in BindVisibilityToActivation are activated. |
|
|
SetsVisibilityOnActivated() |
||
|
SetsVisibilityOnDeactivated() |
||
|
SupportsActivationFocus() |
Name | Description | ||
---|---|---|---|
|
NativeConstruct() |
||
|
NativeDestruct() |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name |
Description |
---|---|
FActivatableWidgetRebuildEvent |
Name |
Description |
---|---|
OnRebuilding |