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"

How can I edit the generated header files?

And before you say I shouldn't understand that I'm aware that we're not supposed to. I have an error in code that does not make sense. I've been coming over it here. I need to try something because I'm not getting anywhere the other methods. The error does not make sense. I want to manually add the structure definitions inside the generated.h. I see some strange numbers associated with each structure definition, how do these work?

 #define KoreShanty_4_15_4_15_Source_KoreShanty_Public_ISC_h_672_GENERATED_BODY \
     friend KORESHANTY_API class UScriptStruct* Z_Construct_UScriptStruct_FAry(); \
     KORESHANTY_API static class UScriptStruct* StaticStruct();

672? what is that? This is clearly the structure above where my problem exists in code. This part is getting generated but the others which use this are not.

Product Version: UE 4.15
more ▼

asked Apr 03 '17 at 06:27 PM in C++ Programming

avatar image

966 143 150 390

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

1 answer: sort voted first

If you want to add something to the generated code, just add it to header file, or to another header file and include it to current header file, the effect will be the same as adding code to generated header.

As for editing "I shouldn't understand that I'm aware that we're not supposed to" problem is not need to understand, problem is you it's pointless to edit as that code as it's gonna be overwritten on next UHT generation, if there a issue in generated code it need to be fixed in UnrealHeaderTool so it won't produce broken code anymore, so either inspect the UHT code or submit bug raport

more ▼

answered Apr 03 '17 at 07:20 PM

avatar image

37.3k 936 172 1116

(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