Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Binding > API/Runtime/UMG/Binding/States
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UWidgetBinaryStateRegistration
- UWidgetDisabledStateRegistration
- UWidgetHoveredStateRegistration
- UWidgetLockedStateRegistration
- UWidgetPressedStateRegistration
- UWidgetSelectedStateRegistration
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Binding/States/WidgetStateRegistration.h |
| Include | #include "Binding/States/WidgetStateRegistration.h" |
Syntax
class UWidgetBinaryStateRegistration : public UObject
Remarks
Derive from to add a new widget binary state
Technically these can be created in BP, but for now we don't want to encourage that workflow as it involves requring overrides for the virtuals which is technical.
Variables
| Type | Name | Description | |
|---|---|---|---|
| friend | UWidgetStateSettings |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetRegisteredWidgetState
(
const UWidget* InWidget |
Called on widget registration to correctly initialize widget state based on the current widget | |
| FName | GetStateName () |
Called once during WidgetStateSettings initialization to get this widget state's name | |
| void | Called to give CDO chance to initialize any static state bitfields that might be declared for convenience |