Make copyright for C++ code

May I know is it possible for me to make a copyright for C++ code without licensing the UE4? Just a partial of the code only and not a game.

Sorry, I’m not sure I understand the question. If you are seeking legal advice, we recommend you seek your own attorney, as Epic is not able to render legal advice to you.

Thanks for reply. I have a code that i wanted to make a copyright. The code is made by myself. I convert the code from blueprint to C++. I had read the EULA and i notice that they didn’t mention is legal to make my own copyright without mention EPIC. Just the code, but not the game. So i can just make my own copyright?

I guess he means licensing parts of the UE Sourcecode - like a specific render or network function to use in his own software or product. If not - @zhujian on your own written code, you have always the copyright, the question is if you can use it without using UE (which needs to be licensed)

I need to use UE4 to open the source code. So does it mean that the copyright only goes to me? or it needs to go to both ue4 and me?

maybe @SonsOfKorhal can jump in again? but as far as I understand you - yes, the code you write in C++ is automatically your intelectual property and you alone have the copyright. if you mix in parts of EPIC or any other author things look different! That - I can’t answer. And yes, if it is ONLY your code without anyone else, you can for example distribute it outside of the Engine, but - and here I guess is your problem - it is quite useless for anyone, except if he uses UE and then he needs still to accept the EPICS EULA and so on. Lets say I’m developing a mailplugin for UE which is C++, and it is also possible to use the code outside of the engine (so UE is not a dependency) you can use it in any way you like. if it is a engine plugin and needs features which UE provides, then you can distribute it still freely but use it only within the EULA etc from EPIC.

disclaimer: this is my personal idea of understanding, I’m not a lawyer nor do I work for epic - so please don’t rely on what I wrote. As far as I remember in the FAQ or somewhere is a mailadress from epics legal staff - maybe write them a mail and link to this issue.