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"

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 alt text

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

Product Version: UE 4.20
more ▼

asked Oct 09 '18 at 12:34 AM in C++ Programming

avatar image

3 1 3

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

1 answer: sort voted first

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

alt text

Please let me know if this helps!


plugintoggle.png (174.6 kB)
more ▼

answered Oct 09 '18 at 02:16 PM

avatar image

NicholasMont ♦♦ STAFF
592 3 4 7

avatar image Joeyrp Oct 09 '18 at 05:47 PM

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

(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