Spawn actor does not work

 FActorSpawnParameters s; FVector v(0, 0, 0); FRotator r = FRotator::ZeroRotator; ATestPawn *test = GetWorld()->SpawnActor<AActor>(ATestPawn::StaticClass(),v,r,s); ``` This is the code that I have, it does not spawn an actor, when I check the pointer to see if it returned anything, it does not. What am I doing wrong

I think instead of <AActor> you need to use <ATestPawn>

It might have something to do with factorspawnparameters, maybe the collision is set to “Do not spawn if colliding” or something like that?