Detect actor spawning in a level


I want to detect whenever an actor is spawned or prespawned in a level while the application in not in play. When a user drag and drop a blueprint in the viewport and when a dev call the SpawnActor() of the UWorld. Do you know a solution to achieve this ?

I already looked at the ActorFactor and the AddOnActorSpawnedHandler and AddOnActorPreSpawnInitialization of the level.

Thank you.