Edit…
Due to the scale of the area I’m working on, it seems that I didn’t get close enough, but the lines only show when at a particular distance, not too close, not to far, and at a certain range of angle. Just took a quick video of the issue.
Original…
Hi, using 5.0.3 and getting confused as to why this isn’t working. The world is set up with an Actor that uses a script that reads in external files but for the life of me, I can’t get my DebugLines to appear. I’ve resorted to using DrawDebugString to pinpoint the start and ends of my grids, the vectors are the same, and from the screenshot you can see one is rendering, the other not. The Blue Text is the start point of each line, the Purple the end point. So I know the vectors are correct, but the code below the image just doesn’t want to appear. Any thoughts?
for (int j=0; j<XLines.Num();j++)
{
DrawDebugLine(GetWorld(),XLines[j].StartPoint,XLines[j].EndPoint,FColor::Red,true,-1,0,10);
DrawDebugString(GetWorld(),XLines[j].StartPoint, *FString::Printf(TEXT("X%d"),j ), NULL, FColor::Blue, -1, true);
DrawDebugString(GetWorld(),XLines[j].EndPoint, *FString::Printf(TEXT("X%d") ,j), NULL, FColor::Purple, -1, true);
UE_LOG(LogTemp, Log, TEXT("Line Start %s , Line End %s"),*XLines[j].StartPoint.ToString(), *XLines[j].EndPoint.ToString());
}