I followed the instructions per the video, and put the #include into the header. However, that tends to break practically the entire Grabber.cpp file. It seems to originate with the UCLASS macro. Does anyone know a solution to this? I should add, that it builds fine until i started the Physics Handle Component lecture.
Grabber.h -
https://www.screencast.com/t/bJpsVlpuh6
Grabber.cpp -
https://www.screencast.com/t/WtVw4mvyJSO
Ok, so i experimented for a while, and ended up just taking the #include “PhysicsEngine/PhysicsHandleComponent.h” out all together, and it managed to clean it up and work for me. i also have #include “Engine.h”, instead of “CoreMinimal.h”.
Grabber.h -
Grabber.cpp -
Turns out, once i progressed through the videos a little, i encountered the same problem trying to put the InputComponent.h into place. I managed to eliminate any errors and got a successful build by again, not including the InputComponent.h into the header. Instead i changed the #include “Components/ActorComponents.h”, to simply #include “Components.h”. Currently i’m getting a successful build, but will this be a drawback later on in the process of the game development?