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. 

How to rebuild an Engine Plugin?

When I create plugins inside my game folder I'm able to adjust the plugin files and recompile them from within my game project .sln.

But whenever I put plugins inside the engine folder they won't recompile from within visual studio. I regenerated the project and they are visible inside the UE4/plugins folder in the solution explorer.

Am I missing something in my .cs files or anything else?

Product Version: UE 4.12
Tags:
more ▼

asked Jul 06 '16 at 10:51 PM in C++ Programming

avatar image

Roel
2.4k 69 42 141

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

2 answers: sort voted first

You need to build the engine from source to do so plugin in there build with it, you can try to use command line there is -plugin option in UBT (you can use it with build.bat) but not sure exacly how it works

You also don't need to rebuild, you can copy paste module dll in plugin and it should work

more ▼

answered Jul 07 '16 at 12:01 AM

avatar image

Shadowriver
36.6k 930 169 1111

avatar image Roel Jul 07 '16 at 05:44 AM

Thanks Shadow river, I will look into the -Plugin option, if it doesn'the work I will go for the engine source.

I did copy it and it worked but since I use it for several projects and update it often it feels silly to move it around all the time.

avatar image M-Pixel Sep 19 '17 at 02:05 AM

I tried this and it didn't work. I double-checked the UBT source code in order to figure out where the -plugin option is supposed to go, and whether or not it needs to be followed by the name of the plugin, but I found that no "-plugin" argument is ever parsed by UBT. The string simply does not exist in UnrealBuildTool.cs.

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

according to this tutorial (https://www.youtube.com/watch?v=WtfLfYY_k2Y) the command should be something like this, compiling the final plugin into the [TempFolder]:

 "C:\Program Files\Epic Games\UE_4.17\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -plugin="C:\Program Files\Epic Games\UE_4.17\Engine\Plugins\[...]\YourPlugin.uplugin" -package="[TempFolder]"
more ▼

answered Oct 11 '17 at 10:18 PM

avatar image

hausfrau87
119 4 6 16

avatar image knziha Nov 12 '18 at 02:21 PM

damn! this cmd will delete everything in TempFolder, what's more it fails.

avatar image Scylardor4242 Mar 13 '19 at 08:16 PM

I managed to successfully build dll's of a plugin with this command. Thanks!

Note that [TempFolder] will by default be put under C:\Program Files\Epic Games\UE_4.17 (in this example).

I also had to make sure the .NET desktop development was installed with my Visual Studio using the Visual Studio Installer.

Actually the process failed at the end, but it seems it built the Win64 dlls before exiting, so I was able to copy them and replace the old ones, which was just what I needed.

(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