This is the base class of the three interfaces. Here we need to introduce several built-in overloadable functions of the system.
This is a built-in function of the system, which initializes the construction event when the interface is first created. Of course, you can choose not to use it and use the constructor of UserWidget, which is just an optional solution.
This is a built-in function of the system, which is called when the interface is displayed. You can do some initialization here, such as Fade animation initial focus, etc.
This is a system built-in function that is called when the interface is hidden.
Used to handle the switching events between gamepad control and keyboard and mouse control
For non-system customized interfaces (such as sub-blueprints inherited from UserWidget), you can use the OnGamepadToggled delegate of UISystem to bind the switching events.