Having trouble with #if WITH_EDITOR

You also need to wrap the declaration of the method in your .h file with #if WITH_EDITOR, otherwise the compiler is looking for a definition which doesn’t exist when compiled for use without the editor.

e.g.



#if WITH_EDITOR
void PostEditChangeProperty(FPropertyChangedEvent& PRopertChangedEvent) override;
#endif


1 Like