x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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.

alt text

Product Version: UE 4.18
Tags:
capture.png (108.0 kB)
more ▼

asked Nov 03 '17 at 09:25 PM in C++ Programming

avatar image

Katianie
151 27 20 30

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

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"

more ▼

answered Nov 04 '17 at 05:53 PM

avatar image

PlainBane
206 5 14 16

avatar image Katianie Nov 04 '17 at 08:29 PM

Perfect, Thanks!

avatar image SalihBalkan Feb 12 '18 at 08:35 PM

Didn't work for me.

avatar image KimYoungSoo Mar 31 '18 at 11:19 AM

Didn't work for me.

avatar image VDR_Reaper Apr 15 '18 at 04:57 PM

Neither, did you manage to find a solution?

avatar image Katianie Apr 15 '18 at 08:15 PM

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.

avatar image VDR_Reaper Apr 16 '18 at 03:53 AM

Tried that, now, still nothing.

avatar image VDR_Reaper Apr 16 '18 at 04:23 AM

Nevermind, worked. Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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" });
more ▼

answered Jan 16 '18 at 03:51 PM

avatar image

KevinDrure
100 9 12 19

avatar image Katianie Jan 16 '18 at 04:26 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Jan 16 '18 at 05:03 PM

avatar image

KevinDrure
100 9 12 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Jan 16 '18 at 05:13 PM

avatar image

KevinDrure
100 9 12 19

avatar image VDR_Reaper Apr 15 '18 at 04:57 PM

Yeah... That doesn't do anything for me (even after fixing the plugins)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question