C++ plugin editor use only (Lock export)

Klian
Fri, 29 Mar 2019 18:25:44 +0000
Plugins

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?

Unreal Engine Forums – 19 Mar 18

#if WITH_EDITOR only removing code from .h, not .cpp

Using #if WITH_EDITOR I have declared a property, that when packaged without the editor, correctly removes itself from the code. However references to that property (also wrapped in #if WITH_EDITOR) get packaged anyway; resulting in compile errors. ...

Thank you!

4 posts - 1 participant