Since upgrading from 4.18 to 4.20.1, debug shapes that I have been using in the editor no longer remain on screen when bPersistentLines is true.
To test I put the following on an empty actor and triggered it in an empty level (in editor, not playing):
DrawDebugSphere(GetWorld(), GetActorLocation(), 50.0f, 32, FColor(255, 0, 0), true);
The sphere appears for about 1s then disappears. Does anyone else have the same problem or is it just me?
For now I have gotten around the problem by setting long durations.
Got this problem too. Only minor but yeah, long durations has been the temporary workaround.
Jeff_A
(Jeff_A)
August 13, 2018, 12:41pm
3
Hello,
We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.
https://epicsupport.force.com/unrealengine/s/
Thanks
I was able to fix this by adding this line to World.cpp:
PersistentLineBatcher->DefaultLifeTime = -1.0f;
On line 1648 for me, but right after this line:
PersistentLineBatcher = NewObject<ULineBatchComponent>();