# How to add UE plugin search paths via env vars?

**URL:** <https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095>\
**Category:** Plugins\
**Tags:** Environment, ue4-editor, unreal-engine, search, Plugins, question\
**Created:** [January 11, 2021, 5:54pm UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095 "2021-01-11T17:54:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_61d68741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61d68741](https://forums.unrealengine.com/u/anonymous_user_61d68741)\
**Post date:** [January 11, 2021, 5:54pm UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/1 "2021-01-11T17:54:51Z")

</div>

Hi,  
I would like to have UnrealEditor look for plugins in additional locations.

Instead of copying `\\my\Location\Runtime\myPlugin` to `.\Engine\Plugins\Runtime\myPlugin` I would rather be able to give UE additional search paths using an **env variable** , kind of like:

\*\*set UE\_PLUGIN\_SEARCH\_PATH=\my\Location \*\*

That would be great for a central maintenance and flexible configuration of plugins for a bigger group of artists.  
(using REZ for example)

Is there a way to do that?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd6f5c86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd6f5c86](https://forums.unrealengine.com/u/anonymous_user_bd6f5c86)\
**Post date:** [January 15, 2021, 11:27am UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/2 "2021-01-15T11:27:39Z")

</div>

I agree, having a UE\_PLUGIN\_SEARCH\_PATH would be ideal, we are facing issues regarding this in my company.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [January 15, 2021, 11:39am UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/3 "2021-01-15T11:39:04Z")

</div>

Directory path is hard coded

```
FString FPaths::EnginePluginsDir()
{
	return FPaths::EngineDir() + TEXT("Plugins/");
}

```

There might be reason why they don’t consider make it configurable. You can install multiple engine versions and plugins need to be compiled to specific engine version to work (this includes different build configurations), so this may cause problems. They could theoretically make it specific engine version configurable (in BaseEditor.ini)

Note that you can place plug in on project directory too, you can use symlinks too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd6f5c86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd6f5c86](https://forums.unrealengine.com/u/anonymous_user_bd6f5c86)\
**Post date:** [January 15, 2021, 9:28pm UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/4 "2021-01-15T21:28:58Z")

</div>

Yes, currently we are using symlinks, the problem is that the engine is located in a Read-only location, so we are symlinking the package into a temp directory, which already causes a conflict with the UE version detected of the projects. It thinks it is a new engine every time.

I understand plugins are compiled per engine version, however, that is how every DCC works at the end, for example we have Maya and we need a compiled version of X or Y plugin for the version of Maya 2018 and 2019, etc. But that is managed by our package manager, so we can have decoupled packages and add them or remove them on the fly for the facility without issues.

---

<div class="post-metadata">

**Author:** ![Olivier\_Argt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Olivier\_Argt](https://forums.unrealengine.com/u/Olivier_Argt)\
**Post date:** [March 15, 2022, 1:00am UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/5 "2022-03-15T01:00:49Z")

</div>

Hi,

I don’t know if it can help you but i have found something in cpp UE editor code.  
You can choose wich plugin will be launch with unreal using -PLUGIN="" engine parameter.  
And you can use many -PLUGIN parameter in the command.

I don’t know if you are using rez, but with this, you can create a custom environment variable and generate -PLUGIN for each path in this custom env.

I created an example to work with rez, i share it if it can help you : [here](https://github.com/OlivierArgentieri-rezpackages/Rez-For-Unreal-Engine-Plugins)

---

<div class="post-metadata">

**Author:** ![hughetop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hughetop](https://forums.unrealengine.com/u/hughetop)\
**Post date:** [December 2, 2022, 10:11pm UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/6 "2022-12-02T22:11:40Z")

</div>

You are a life saver!

---

<div class="post-metadata">

**Author:** ![PE\_Buteau\_2MA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PE\_Buteau\_2MA](https://forums.unrealengine.com/u/PE_Buteau_2MA)\
**Post date:** [October 11, 2024, 2:26pm UTC](https://forums.unrealengine.com/t/how-to-add-ue-plugin-search-paths-via-env-vars/477095/7 "2024-10-11T14:26:32Z")

</div>

Starting from at least 5.3, you can specify additional plugins paths using the `UE_ADDITIONAL_PLUGIN_PATHS` environment variable.

This is only applicable to the editor though.  
Found in the source code `Engine/Source/Runtime/Projects/Private/PluginManager.cpp`
