Can line-thickness be used in any 2D slate line draw functions?

Hey Team,

Is it possible to draw a line in 2D with a controllable width/thickness from a slate element?

I have a graph extending SCompoundWidget drawing its grid & data lines in OnPaint. As far as I can tell I cannot supply width/thickness with FSlateDrawElement::MakeLines.

Cheers,
Mugen

Sorry I should have clarified: By draw line, I mean on the UI in 2D. I’m not dealing with any actors, just X/Y coordinates.

Thanks anyway.

Not sure about slate I dont fumble with it, im sure your aware of the debug lines though?

DrawActorDebugLines(AActor * StartActor, AActor * EndActor, FLinearColor LineColor, float Thickness, float Duration)    
 {
     if (!StartActor) return;
     if (!EndActor) return;
     
     DrawDebugLine(
         StartActor->GetWorld(), 
         StartActor->GetActorLocation(), 
         EndActor->GetActorLocation(), 
         LineColor.ToFColor(true),
         false, 
         Duration, 
         0, 
         Thickness
     );
 }

Dont forget to accept the answer that best clears up your question or answers your problem so that anwerhub stays clean and organized and people searching for the same problem will know exactly what you did to fix it.

Does the argument allow replacments with a vector2d?

This was fixed in 4.11.2