Compiler Can Not Find DestructibleComponent.generated.h

I’m trying to use a UDestructibleComponent in a C++ class but when I include DestructibleComponent.h I get a compiler error: fatal error C1083: Cannot open include file: ‘DestructibleComponent.generated.h’: No such file or directory

I’ve enabled the Apex Destruction plugin and I’m on version 4.20.3.

Hey GuruOfReason,

If you open your DestructionSystem_TB.Build.Cs file, you should see the following line to add Dependency Modules.
You will need to add the ApexDestruction module.

public DestructionSystem_TB(ReadOnlyTargetRules Target) : base(Target)
	{
	PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ApexDestruction" });

	}

Also, if you navigate to your Editor->Edit->Plugins->Physics-> Enable Apex Destruction, Then restart the editor

Please let me know if this helps!

Thanks.

Thank you very much! I did not know I had to manually add it to the *.Build.cs file. That did the trick.