# Can I use the engine's source code in my plugin?

**URL:** <https://forums.unrealengine.com/t/can-i-use-the-engines-source-code-in-my-plugin/462351>\
**Category:** Platform & Builds\
**Tags:** legal, developer, build, Shipping, unreal-engine, module, question\
**Created:** [March 11, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/can-i-use-the-engines-source-code-in-my-plugin/462351 "2020-03-11T14:35:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gamji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gamji](https://forums.unrealengine.com/u/Gamji)\
**Post date:** [March 11, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/can-i-use-the-engines-source-code-in-my-plugin/462351/1 "2020-03-11T14:35:35Z")

</div>

Hi all,

I have a plugin on the marketplace that uses DesktopPlatformModule for some of its functions. Now since DesktopPlatformModule is a developer module, it doesn’t package when using the Shipping build configuration which is sort of an issue.

I was wondering, am I allowed (legally) to extract the segments of code I need out of the module into another class and then sell that on the marketplace? In a way I can imagine how this can be seen as stealing code, but would that only be the case if I put my copyright claim right?

---

<div class="post-metadata">

**Author:** ![Gamji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gamji](https://forums.unrealengine.com/u/Gamji)\
**Post date:** [March 14, 2020, 1:37pm UTC](https://forums.unrealengine.com/t/can-i-use-the-engines-source-code-in-my-plugin/462351/2 "2020-03-14T13:37:37Z")

</div>

It would seem this is allowed, but only for source code from the Editor or Developer folders:

> **[Plugin license with and without Source/Runtime/Engine code](https://forums.unrealengine.com/questions/359449/view.html)**
>
> I am developing an editor only Plugin. As it stands right now I have not used any ue4 source in the plugin. If I sell this on any online store what terms/royalties will apply? Secondly as it gets more complex. I wish to incorporate snippets of code...
