Objects created with NewObject in Editor don't show in scene hierarchy

I want to be able to spawn in an amount of objects in the Editor, I wrote this code:

#if WITH_EDITOR
void AMyActor::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
	for (int i = components.Num(); i < amount; i++)
	{
		FString a = "Object" + FString::FromInt(i);
		const TCHAR* n = *a;
		tempComp = NewObject<USceneComponent>(this, USceneComponent::StaticClass(), n, 
            RF_Standalone);
		tempComp->RegisterComponent();
		tempComp->AttachTo(RootComponent);
		components.Add(tempComp);
	}
}

#endif

It kinda works as I want to, however the objects created don’t show up in the scene hierarchy until I press the “Play” button.

Like this:

331902-1.png

After I press play the object shows up correctly:

331903-2.png

Is it possible to make this object show up here without needing to press play?