Error C2084: function 'FArchive &operator <<(FArchive &,UK2Node_EditablePinBase *&)' already has a body

Hey there,
this might be a stupid question. I’m trying to create a new class based on the MaterialFactoryNew.h but I don’t know how to get rid of the error. All I did was renaming the class…

#pragma once
#include "AutoMatMaterialFactoryNew.generated.h"

UCLASS(hidecategories=Object, collapsecategories, MinimalAPI)
class UAutoMatMaterialFactoryNew : public UFactory

	/** An initial texture to place in the newly created material */
	class UTexture* InitialTexture;

	// Begin UFactory Interface
	virtual UObject* FactoryCreateNew(UClass* Class,UObject* InParent,FName Name,EObjectFlags Flags,UObject* Context,FFeedbackContext* Warn) override;
	// Begin UFactory Interface	

This has nothing to do with header file, this error means the operator override (which work like function) is defined again somewhere. What file it is pointing you having this error (check output tab)? Does it point you near GENERATED_UCLASS_BODY()? Also did you copy paste anything to create your UFactory?

Hey , thanks for helping me! Checked the output tab and it’s pointing to K2Node_EditablePinBase.h line 80 which is the GENERATED_UCLASS_BODY().But I still don’t know how to fix it…and I don’t think I copy paste anything to create my UFactory if I get the question right.

Try rebuild your project and the engine

Problem remains…