Is it possible to assign specific material to FPrimitiveDrawInterface's drawn line?

Hi,

Is it possible to assign specific material to FPrimitiveDrawInterface’s drawn line?

I tried to change its opacity by using below

 FColor LineClr = FColor(120.0f, 0.0f, 150.0f, JumpPad->CalculateJumpPathAlpha()); 
 
 //Draw and swap line ends
 PDI->DrawLine(Start, End, LineClr, 0, LINE_THICKNESS);

and JumpPad->CalculateJumpPathAlpha() is actually called every tick and updated returned float that will be used for alpha but the spline itself is not updating its alpha.

And of course I changed engine-side code “BatchedElements.cpp”

to accept alpha value.

 FLinearColor OpaqueColor(Color);
 //OpaqueColor.A = 1; // This is original implementation and I commented this line for alpha use.

I don’t know why it does not work. Any suggestions would be appreciated.