Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUserWidget
Description
Spawns the InputComponent and binds any script delegates if bAutomaticallyRegisterInputOnConstruction is true.
bAutomaticallyRegisterInputOnConstruction is true when there are input event nodes in the graph of this widget, which would in turn need to be bound in order to receive their callbacks.
This should only happen once per widget when it is spawned and initialized.
| Name | CreateInputComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
virtual void CreateInputComponent()