I can’t create new C++ class inherited from Overlay.
Whats wrong with it?
Many errors in UOverlay class (Components/Overlay.h) and “override” keyword…
I can’t create new C++ class inherited from Overlay.
Whats wrong with it?
Many errors in UOverlay class (Components/Overlay.h) and “override” keyword…
Share the code in which gives this issue.
Hello broly,
The class that you’re attempting to create is being made and that is what is causing the errors that you’re seeing. When the C++ class wizard creates a class, it adds the necessary .cpp and .h with code based off the template. In this case, the wizard doesn’t know everything that needs to be included, thus multiple errors are given. This isn’t as much a bug with the editor but a matter of missing vital code.
From looking at the errors however, it does seem that the issue is related to missing some includes that are required for an instance of the UOverlay class and you may also not be including the UMG module.
Hope this helps!