# Plugin editor does not prevent deep circular dependencies 

**URL:** <https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [May 29, 2026, 9:00pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444 "2026-05-29T21:00:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 29, 2026, 9:00pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444/1 "2026-05-29T21:00:13Z")

</div>

The `GetOptions` function for adding plugin dependencies (_UPluginMetadataObject::GetAvailablePluginDependencies_) only checks direct dependencies (this seems to be a known issue called out in the code).

As an example, if you had `A -\> B -\> C`, you would be able to add `C -\> A` as a dependency, despite the fact that doing so would introduce a circular dependency and cause build failures.

I was able to update the function locally to properly cull deeply circular dependencies. It’s a bit slower (due to the greater complexity of the search), but could definitely be optimized further. Would this be something it might make sense to upstream?

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 29, 2026, 9:00pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444/2 "2026-05-29T21:00:17Z")

</div>

**Steps to Reproduce**

1. Have a plugin dependency chain with at least 3 plugins: A -\> B -\> C
2. Try and add C -\> B as a dependency. B correctly is excluded from the dropdown, preventing the addition.
3. Try and add C -\> A as a dependency. A appears in the dropdown and can be added.
  1. Adding C -\> A causes the editor to no longer build or launch correctly, due to the circular dependency.

I’m not going to bother providing a repro project, as a code comment in ~~UPluginMetadataObject::GetAvailablePluginDependencies~~ indicates that this behavior is a known issue.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Cody.Albert](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cody.albert/32/1088813_2.png) [@Cody.Albert](https://forums.unrealengine.com/u/Cody.Albert)\
**Post date:** [June 9, 2026, 9:55pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444/3 "2026-06-09T21:55:05Z")

</div>

Hi,

It looks like this basic dependency check was added some time ago and never really expanded on, so we could probably make it more robust as long as it doesn’t have too negative of a performance impact. I’d be happy to have a look at your changes and see if that’s something we can bring into the engine; a Github PR is the best way to go typically (especially if it’s a big change) but you can also share snippets here if that’s simpler. Let me know if you do send in a Github PR and I’ll flag it with the relevant team.

Best,

Cody

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 15, 2026, 10:46pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444/4 "2026-06-15T22:46:13Z")

</div>

Hi Cody!

I’ve created a PR (first time trying to contribute to Unreal, so hopefully I did it right).

[https://github.com/EpicGames/UnrealEngine/pull/14887](https://github.com/EpicGames/UnrealEngine/pull/14887)

Thanks,

Jonathan

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Cody.Albert](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cody.albert/32/1088813_2.png) [@Cody.Albert](https://forums.unrealengine.com/u/Cody.Albert)\
**Post date:** [June 22, 2026, 5:32pm UTC](https://forums.unrealengine.com/t/plugin-editor-does-not-prevent-deep-circular-dependencies/2737444/5 "2026-06-22T17:32:33Z")

</div>

Perfect, I’ve linked our internal tracking to this ticket so that the team reviewing that change will have all the context. You should receive updates on the PR directly once the team has had a chance to review that change.

Best,

Cody

[Attachment Removed]
