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 to Edit Engine Source code?

I am trying to edit some internal classes in the engine but none of my changes are being compiled. I even tried typing random syntax errors and I still can't get the engine to fail to compile (I tried a clean and make and everything). I assume this is because somewhere the makefile is set to ignore changes to the engine code? Can someone please point me in the right direction?

Product Version: UE 4.14
more ▼

asked Jan 23 '17 at 03:02 AM in C++ Programming

avatar image

Ian Proulx
44 7 13 20

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

1 answer: sort voted first

Sanity checks:

Did you...

  • check the source code out from Github?

  • compile the source code by following the instructions on Github (including running Setup and GenerateProjectFiles)?

  • run the version of the engine that you compiled?

  • quit the running editor, then recompile changes you made to the engine source code, then start the engine that you compiled?

As a side note, what Operating System are you on?

more ▼

answered Jan 23 '17 at 04:12 AM

avatar image

2.1k 67 84 77

avatar image Ian Proulx Jan 23 '17 at 05:01 AM

Hi thanks for the response.

I'm running on windows 10, UE4.14.3. New to UE4 but experienced with c++. I didn't know I needed to check the source code out from Github in order to modify the engine code. Is this not something that is done via the epic games launcher when you download the engine and create a c++ project? I am able to see all of the source code in addition to my code, so I assumed that meant I had and could therefore modify the source code... Thanks

avatar image Tim C ♦♦ STAFF Jan 23 '17 at 10:40 PM

Hi Ian,

The version of the Engine that is installed by the Launcher is a pre-compiled binary version of the Engine. The source code is included there for reference only, and the only thing that is actually being compiled in Visual Studio when you perform a build is your project code.

If you want to be able to actually make changes to Engine source code, as CleanCut mentioned, you will need to download the source code from GitHub and build the Engine yourself. When you have built the Engine from source code, any subsequent edits that you make to the source code will result in those changes being built into the Engine.


avatar image Ian Proulx Jan 23 '17 at 11:08 PM

Thanks guys! I'll go ahead and get the source from github.

(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