Can't figure out error with DrawDebugLine()

Hey, I’m having trouble figuring out what’s going on here. Thanks to anyone who can help me out!



Grabber.h should be the first #include.

1 Like

Thanks! That Worked. Could you explain the logic in how knew that, and why it didn’t work?

I honestly don’t know, I just saw the error, and thought that might have something to do with it, and my keen eyes had noticed that my class’s .h file #include was at the top. @DanM, will you be so kind to explain why?

Unreal changed it’s build settings to make each cpp require its own header first e.g. A.cpp includes A.h first.

And as @Aryan_Kumar said, they just read the fifth line that says it’s expected to be first.

Good to know, thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms