Download

Best practice for #includes

I noticed there seems to be a debate about best practice on google for #includes. Also in the third person default setup with unreal engine 4.25. The “character.cpp” has the #includes instead of the “character.h”. Is this is a mistake or best practice for unreal ?

It’s a C++ best practice.

You should read Coding Standard https://docs.unrealengine.com/en-US/Programming/Development/CodingStandard/index.html
Physical Dependencies section should help.