Bounding box 2d


I am using a replicator to detect objects as shown in the image attached here, but my problem now is that when I close the RenderVar or change the type to Ldr color or any other view the colors of the boundary boxes change is there any solution so I can keep it, for example, Green, Red, and Blue always or even the same as the image colors?
Screenshot from 2023-04-04 20-47-40