# Community Tutorial: Compiling a plugin for a new engine version

**URL:** <https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine\
**Created:** [April 11, 2022, 8:04am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603 "2022-04-11T08:04:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doublezer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doublezer0](https://forums.unrealengine.com/u/Doublezer0)\
**Post date:** [April 11, 2022, 8:04am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/1 "2022-04-11T08:04:22Z")

</div>

Learn how to compile a plugin for a new source engine version without opening your engine source build.  
  
[https://dev.epicgames.com/community/learning/tutorials/0RG4/unreal-engine-compiling-a-plugin-for-a-new-engine-version](https://dev.epicgames.com/community/learning/tutorials/0RG4/unreal-engine-compiling-a-plugin-for-a-new-engine-version)

---

<div class="post-metadata">

**Author:** ![AltoRetrato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/altoretrato/32/494390_2.png) [@AltoRetrato](https://forums.unrealengine.com/u/AltoRetrato)\
**Post date:** [December 31, 2022, 7:10pm UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/2 "2022-12-31T19:10:51Z")

</div>

Thanks for the tips!

I just wanted to add that I could not build a plugin at first and noticed warnings/errors related to the Visual Studio version. The batch file eventually executes “UnrealBuildTool.exe” with the parameter " -2017", causing “ERROR: Visual Studio 2017 must be installed in order to build this target.” (I have VS 2022 installed). From reading other threads I figured out I had to add the parameter “-VS2019” when invoking RunUAT.bat, which solved this issue.

---

<div class="post-metadata">

**Author:** ![BoomRaccoon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/boomraccoon/32/952546_2.png) [@BoomRaccoon](https://forums.unrealengine.com/u/BoomRaccoon)\
**Post date:** [April 16, 2023, 9:29am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/3 "2023-04-16T09:29:00Z")

</div>

Oh ■■■■. Please add a warning to use an empty directory for the output. I just deleted everything on my desktop. ■■■■  
Also, the powershell and terminal will need

> .\RunUAT.bat BuildPlugin -plugin="PATH\TO\PLUGIN\MyPlugin.uplugin -package=“MY\NEW\PATH” -TargetPlatforms=Win64

to run the command

---

<div class="post-metadata">

**Author:** ![House\_zu\_Heltzer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/house_zu_heltzer/32/488662_2.png) [@House\_zu\_Heltzer](https://forums.unrealengine.com/u/House_zu_Heltzer)\
**Post date:** [May 15, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/4 "2023-05-15T17:03:34Z")

</div>

Does that mean there is a way to include a UBT build script in a plugin to use when there is a custom engine? Or is it expected that the end user do this themselves to save time?

---

<div class="post-metadata">

**Author:** ![Kher.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kher.exe/32/778868_2.png) [@Kher.exe](https://forums.unrealengine.com/u/Kher.exe)\
**Post date:** [February 5, 2025, 3:04pm UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/5 "2025-02-05T15:04:12Z")

</div>

I just wanted to give a quick heads-up. I noticed that there’s a small syntax error in the command provided. Specifically, the `-plugin` argument is missing a closing quotation mark.

Here’s the corrected version:

`RunUAT.bat BuildPlugin -plugin="PATH\TO\PLUGIN\MyPlugin.uplugin" -package="MY\NEW\PATH" -TargetPlatforms=Win64`

Thanks for the great guide, and I hope this helps someone else avoid a little confusion!

---

<div class="post-metadata">

**Author:** ![Doublezer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doublezer0](https://forums.unrealengine.com/u/Doublezer0)\
**Post date:** [February 7, 2025, 8:20am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/6 "2025-02-07T08:20:48Z")

</div>

Thank you !  
It’s amazing it’s gone this long without someone pointing it out. I’ve edited the tutorial to support this change. Thanks again

---

<div class="post-metadata">

**Author:** ![CMart13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CMart13](https://forums.unrealengine.com/u/CMart13)\
**Post date:** [February 11, 2026, 9:12am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/7 "2026-02-11T09:12:36Z")

</div>

2026 this method still works. Thanks Uncle Unreal! Its like some one from Epic should hire this guy. cough cough\*

---

<div class="post-metadata">

**Author:** ![Doublezer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doublezer0](https://forums.unrealengine.com/u/Doublezer0)\
**Post date:** [April 14, 2026, 2:47am UTC](https://forums.unrealengine.com/t/community-tutorial-compiling-a-plugin-for-a-new-engine-version/610603/8 "2026-04-14T02:47:20Z")

</div>

I’d feel bad taking a job there now 1000 people had to be made redundant. Those people earned their positions and although it’s a dream job for me, I’ll patiently way my turn if it ever happens 🙂  
Thanks though 🙂
