Referencing UMG Class Variables in C++?

You add the modules in YourProjectName.Build.cs
What you want for the refrence is a



UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "My Widget, Sub My Widget")
UUserWidget* MyUMGWidget;


There is a wiki on extending user widget that may be of some help.