Static default camera says "Screen position out of view frustum (screen pos inf, -inf)"

I made a simple default camera that has nothing modified on it and positioned it directly above a basic black plane. The camera doesn’t move & is used for nothing except 1) looking at the result, and 2) raycasting through the mouse

However, when I press play while in scene view (unfocused) it gives me this error:

image

These exact errors have been showing up sporadically on my editor too, although interestingly for me they do not seem to be causing any issues. I’ve just been brushing it off as a recent Unity Editor bug.

I found legacy stuff about them, so dunno. Resurfaced?

I’ve managed to replicate it reliably by being in the scene tab when I press play. I think it’s related to how you have to go to the play tab to make the code actually run before you can look at things in scene.

Are you changing the camera position? Perhaps you have a bug that causes the position set to infinity. Or that code runs in the wrong callback, OnValidate for instance.

No, as I said it’s static & doesn’t move. But I will edit for clarity.

And just realised this only happens if I press play on the Scene view.