it might be a very wooly question but i am close to loosing my mind on this right now.
I am following a Udemy course on C++ Programming in UE4 and I am getting a full load of errors with almost no
code altered.
I have Created a new Actor Component and literally everything I added is the following:
I read some posts where it says to include “Engine.h” to the cpp file but that didn’t work.
It seems to me that there are somehow problems with the IDE communicating to the Engine or so.
What am I missing out here?
I would be thankful for any hint !
I do not know what version of the engine that Udemy is using for the tutorials but including “Engine.h” is no longer a practice. The engine was shifted away from having a big include file, such as “Engine.h”, to have a smaller one called “CoreMinimal.h” and then include only the header (.h) files that you are using for that class.
Many thanks !
It solved the problem. I had to experiment where to place this include. Some locations caused other errors to occur but now its working fine.
If you are using something like VAX there is an option where it will got insert the necessary .h file. Very handy. Or, just leave a tab open pointing to the API docs for Unreal…