DrawDebugBox only draws after game exit

Hi,

I’m trying to draw the debug box for my actor, but for some reason it only appears after I exit game to editor. If I switch persistentLines parameter from true to false, I only get a brief blip of rectangle drawn on game exit. Does anybody know how to show lines in game?

Here is the code:

DrawDebugBox(
            actor->GetWorld(),
            center,
            extent,
            FColor::Red,
            true,
            -1.f,
            SDPG_World,
            2);

PS: Using 4.26.