Cant Find DestructibleComponent.h on 4.18

I just updated to 4.18 and they moved DestructibleComponent.h. It was originally located in “Components/DestructibleComponent.h” but now my includes are broken. Any idea where it was moved too?

I can see its located in “Runtime/ApexDesturction/Source/ApexDestruction/Public/DestructibleComponent.h” when I browse the engine in the solution explorer but I am unable to #include it.

Go to your project root folder then Source/YourProjectName/ open YourProjectName.Build.cs in
PublicDependencyModuleNames.AddRange Add “ApexDestruction” module. Then in your code
#include “DestructibleComponent.h”

Perfect, Thanks!

Same problem for me, but it doesn not enough I still have a compilation error (can’t include destructible component).

Any idea ?

My build.cs has the module added like this:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule", "UMG", "Slate", "SlateCore", "Landscape", "GameplayTasks", "LevelSequence", "ApexDestruction", "META_EditorDebug", "MC_Steering", "MC_SaveGamesystem", "MC_LineRenderer", "MC_Minimap", "MC_CurvePlayer", "MC_IK_System", "MC_Voice" });

Make sure you add this to the to the .uproject file and then rebuild the visual studio files by right clicking the .uproject in windows explorer.

I already did this, it doesn’t work for me. I can’t figure why :confused:

Fixed. Header has been moved, I just removed "Components/’ part from my include and now it works.

Didn’t work for me.

Didn’t work for me.

Neither, did you manage to find a solution?

Yeah… That doesn’t do anything for me (even after fixing the plugins)

After making the changes, save and delete the .sln files. Then rightclick on the .uproject file and re-generate visual studio files. Also try deleting any Saved, Build, and intermediate, temporary files. See if that works.

Tried that, now, still nothing.

Nevermind, worked. Thanks!

I wish this was part of the highlighted answer - I had a panicky 30 minutes of my project no longer starting. This fixed the error (paraphrased): There was an issue with module “ProjectName” there might be something wrong with your operating system.

Simply adding the Dependency and editing the .uproject to include what you mentioned (copied and pasted below for future convenience) fixed the issue.

"Plugins": [
	{
		"Name": "ApexDestruction",
		"Enabled": true
	}	
]

Edit: I also deleted my ProjectName.sln, right clicked on the .uproject and generated visual studio project files. I’m not sure if that’s required but I figured I would mention everything I did.