Hi forum, I have an issue with what i feel should be very simple. I cannot get DebugDrawLine() to actually draw a line that i can see. I am calling the function below from within a custom blueprint node if that makes a difference.
void USwingShot::Draw(const FVector& Start, const FVector& End)
{
//TODO: Draw the line we want to check against
UE_LOG(LogTemp, Warning, TEXT("Drawing Line"));
// may be able to use the traceline function to also draw the line for this
DrawDebugLine(
GetWorld(),
Start,
End,
FColor(255, 255, 255),
true, // sets weather or not the line is in the world permanently
-1.f, 0,
5
);
}
I found that i didn’t have DrawDebugHelpers.h originally which i only found out about in a single question on here. however even with that included i still cannot see a line. I have tried giving the line an alpha value of 1 and still nothing. i am wondering if there is a setting i need to torn on like there is in Unity.
Any help is greatly appreciated.
Thanks,
ND
Note: I do have another question about LineTraceSingle*() not working which could solve this problem by not having to use this function. I will try and link that question to this one.