C++ plugin editor use only (Lock export)

Just don’t include binaries (lib files intermidiate/build directory) of Development non-editor (lib file in UE4 not UE4Editor) and Shipping build of your plugin. And don’t include source (header files at most if you want your plugin to be C++ enabled), if you include it anyone can build your plugin and remove any form of protection.

Module build version need to match with the rest of the engine, otherwise it will fail at linking, so editor module won’t work on standalone engine build

If you really worried you can also crash the engine on module load if WITH_EDITOR is false

1 Like

Hello! I’m looking for a good way to create a compiled demo plugin you can test inside the editor but i need to disable the “build project” option or generate an error while it’s exporting the project to block any ability to create a standalone product.

Could using “#if WITH_EDITOR” be a valid option?

Thank you!

I will try removing those files later, thank you very much! Awesome answer!

It works, thank you very much!