Recently I tried to add a new c++ class to my project, which inherits from a custom AActor class I’ve made. I do, already, have several other custom c++ classes inherit from this class with no issues.
When adding the new class using the in Engine Window the project no longer compiles, giving me the following error:
This is Engine code, which is set to ReadOnly for me.
This is the section at which the error occurs:
What I’ve Tried:
- Searching for another declaration of EUnitType, I was not able to find one
- Creating the c++ class with a different name; this has no effect
- Creating a new c++ class in a starter project; this works fine.
When I delete the newly created class’ files, the project compiles again.
Any help is greatly appreciated!
After tying some things, I found a new new error that appears in Visual studio before the errors as seen in the log above. The .generated file seems unable to be opened: