老师,你的随机生成出生点我找你的代码有问题,我用GEngine->AddOnScreenDebugMessage(-1, 50.f, FColor::Yellow, Box->Bounds...
老师,你的随机生成出生点我找你的代码有问题,我用GEngine->AddOnScreenDebugMessage(-1, 50.f, FColor::Yellow, Box->Bounds.Origin.ToString());
GEngine->AddOnScreenDebugMessage(-1, 50.f, FColor::Yellow, Box->Bounds.BoxExtent.ToString());
Location = UKismetMathLibrary::RandomPointInBoundingBox(Box->Bounds.Origin, Box->Bounds.BoxExtent);
Dist = (Hero->GetActorLocation() - Location).Size();
if (Dist < Distance) {
return FindSpawnLocation();
}
才行
swith好像进不去