Best In-Code Way to Discern if a Viewport is Primary or Secondary

HI HI HI

I’m trying to figure out the best way to disable some of my rendered objects and post-effects if the viewport that’s being rendered is not the primary editor viewport (but, instead, is like in the static mesh viewer, or in the material editor, etc.) and…

Well. I don’t have a good way of figuring that out. HALP PLZ