Setting the value to 0 was undefined behavior because the default-value was not initialized and therefore is not a regression. If you want to have it drawing indefinitely than setting it to positive infinity would still be an option that makes more sense than Zero.
Setting the lifetime for one of the visual debug helpers (a sphere was used in the repro, but the results should be similar for any of the debug helpers) to a value of 0 or less should make the debug helper remain visible on the screen indefinitely. However, the debug helper disappears after 1 second. This appears to be the result of CL 4059141, where the DefaultLifeTime for ULineBatchComponent was initialized to 1.0 (it had previously been uninitialized). This should probably be initialized to 0.0 instead.
REGRESSION:
Yes. In 4.19 a lifetime value of 0 or less would allow the debug helper to be drawn indefinitely.
RESULT:
A debug sphere will be drawn around the starting location of the camera in the level, and will disappear after 1 second.
EXPECTED:
A debug sphere will be drawn around the starting location of the camera in the level, and will remain visible indefinitely since the lifetime is set to -1.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-63914 in the post.
2 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.20.2, 4.21 |
Target Fix | 4.21 |
Created | Sep 10, 2018 |
---|---|
Resolved | Sep 17, 2018 |
Updated | Sep 26, 2018 |