caseymcc / UE4CMake

Provides a simple way to add a cmake lib to any Unreal Engine 4 (UE4) or 5 (UE5) project.
MIT License
78 stars 14 forks source link

Adds instructions on how to include third-party headers #21

Closed AndreaCatania closed 4 months ago

AndreaCatania commented 4 months ago

I spent the past 3 days in debugging some weird crashes caused by classes misalignment. Turns out that in UE is mandatory to wrap all the third-party includes using PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING and PRAGMA_POP_PLATFORM_DEFAULT_PACKING.

I'm including this information here, to simplify the life to a bunch of people using this plugin.

Read more about this investigation here