Description

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)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-89010 in the post.

4
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.24
CreatedFeb 18, 2020
ResolvedAug 31, 2021
UpdatedAug 31, 2021