Compilation error with engine modification : Couldn't find parent type for 'ActorFactoryLandscape' named 'UActorFactory' in current module or any other module parsed so far

Hello,

I am currently trying to add a landscape auto-generation feature to the engine.

I successfully added a new function to auto-generate a landscape, everything works well.

But today, when i reopen the project and try to recompile the engine, this error occurs : “Couldn’t find parent type for ‘ActorFactoryLandscape’ named ‘UActorFactory’ in current module or any other module parsed so far”

Well, i haven’t modified anything in the factories, my only interraction with a factory is this call :

ALandscape* Landscape = LandscapeEdMode->GetWorld()->SpawnActor(ALandscape::StaticClass(), Location + Offset, Rotation.Rotator());

And i don’t understand why the compilation success once and error occurs by now…

Thanks for your help !