I tried to extend the class UWidgetComponent (in my game code), but visual studio keeps saying that it couldn’t find it.
Yeah I have the same problem, Cant even create a widget component in c++ since compiler cant see it
You have to add include path of UWidgetComponent.
after that you can use it.
For any one else who reads this, Include the correct header to use WidgetComponents
Note this component is experimental and may change or be removed in later versions.
Also as a side note if you ever run into this problem again and cant figure out the include path, look at your current version of the Engine source code paths and find the directory the file is in.
Thanks ! that was helpful