Skip to content

Instantly share code, notes, and snippets.

@lambdan
Created January 23, 2024 11:50
Show Gist options
  • Save lambdan/b0a154eb0f29beffa224284507ad68e8 to your computer and use it in GitHub Desktop.
Save lambdan/b0a154eb0f29beffa224284507ad68e8 to your computer and use it in GitHub Desktop.
Unreal C++ Forward Declaration TLDR

Unreal C++ Forward Declaration TLDR

In .h file:

In the .h file you forward declare:

#include ...
#include "...generated.h"

class YourClass;

In .cpp file:

In the .cpp file you actually include the header

#include "YourClass.h"

Have a good day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment