USceneCaptureComponent2D how to set flags?

Hey, could anyone tell me how to set those flags from C++? (BSP, Decals and etc)

Found solution:
sceneCaptureComponent->ShowFlags.Decals = false;

where did u wrote that line? Constructor or Beginplay? Thanks.