Why is "UUserWidget is not a type name" when I try to declare the variable?

BTW, you just need step 1 and 2, and then #include “Blueprint/UserWidget.h” where you want to use UUserWidget* myWidget;