Navigation
API > API/Runtime > API/Runtime/UMG
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.
| Name | UWidgetBinaryStateRegistration |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Binding/States/WidgetStateRegistration.h |
| Include Path | #include "Binding/States/WidgetStateRegistration.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UWidgetBinaryStateRegistration : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWidgetBinaryStateRegistration
Derived Classes
UWidgetBinaryStateRegistration derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWidgetBinaryStateRegistration() |
Binding/States/WidgetStateRegistration.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UWidgetBinaryStateRegistration() |
Binding/States/WidgetStateRegistration.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool GetRegisteredWidgetState
(
const UWidget* InWidget |
Called on widget registration to correctly initialize widget state based on the current widget | Binding/States/WidgetStateRegistration.h | |
virtual FName GetStateName() |
Called once during WidgetStateSettings initialization to get this widget state's name | Binding/States/WidgetStateRegistration.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeStaticBitfields() |
Called to give CDO chance to initialize any static state bitfields that might be declared for convenience | Binding/States/WidgetStateRegistration.h |