I’m trying to get a list of target points in my scene but its throwing me errors.
I’m, currently using in the cpp:
UGameplayStatics::GetAllActorsOfClass(GetWorld(), ATargetPoint::StaticClass(), Waypoints);
UE_LOG(LogTemp, Warning, TEXT("Waypoint count: %s"), Waypoints.Num());
and in the .h:
UPROPERTY()
TArray<AActor*> Waypoints;