I’m using some functions in my project, that have the #if_editor property, How can I compile the game for release whithout getting the “UnrealBuildTool: ERROR: Non-editor build cannot depend on non-redistributable modules”.
Should I just release as development build?
Hey Theme3d-
Using #if WITH_EDITOR
will mark the code as only being available in editor builds. This means that the code is only compiled in builds that include the editor, non-editor and packaged builds will skip this code when compiling. If your project relies on this code, the best solution would be to remove #if WITH_EDITOR
.
Cheers
Ok. I need to import objects and make them as assets. I start removing the #if WITH_EDITOR and if WITH_EDITORONLY_DATA I get all sort of errors.