Came across a few oddities with draw debug.
DrawDebugSolidBox ignores the DepthPriority parameter and appears to always draw in World. In the screenshot the sphere is drawn on top of the mesh, the solid box is not.
DrawDebugSphere(GetWorld(), GetOwner()->GetActorLocation(), 30.f, 8, FColor::Green, false, -1.f, ESceneDepthPriorityGroup::SDPG_Foreground, 2.f);
DrawDebugSolidBox(GetWorld(), GetOwner()->GetActorLocation() + FVector::RightVector * 100.f, FVector::OneVector * 30.f, FColor::Green, false, -1.f, ESceneDepthPriorityGroup::SDPG_Foreground);
alt text
DrawDebugLine ignores the LifeTime parameter when DepthPriority is set to Foreground, but works fine with World or even Max
DrawDebugLine( GetWorld(), GetActorLocation(), GetActorLocation() + FVector::RightVector * 100.f, FColor::White, false, 1.f, ESceneDepthPriorityGroup::SDPG_Foreground, 7.f)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-89010 in the post.
4 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.24 |
Created | Feb 18, 2020 |
---|---|
Resolved | Aug 31, 2021 |
Updated | Aug 31, 2021 |