Creating a Widget in just C++

Ya I tried it and still got errors, I tried starting a new project from scratch just see if UserWidget would work if I started a new project (to keep it separate from the other stuff I did) but the class still will not compile into unreal.

What I did was:

  1. Started a new project
  2. made changes to the .build.cs file you recommended (tried compiling afterwards and got errors)
  3. created widget ui design using BP
  4. create a custom c++ class with UserWidget in the create a class selector. (errors still pop up on compile)

I feel like I am likely missing a step here or doing something wrong. I might try it all again. Sorry for the inquiry I am likely making some rookie mistake somewhere.