OK so I am working through the Argon Assault course and I have come across what might be a bug with Unity. I added the StarSparrow2 prefab from the pack. I have it all coded and set up mostly as Rick has done in his tutorial video. However, I noticed a “warning” message in the console. It keeps saying “BoxColliders does not support negative scale or size.” Then it tells me the offending collider. It seems to have different ones that it picks each time, but only 6 that it chooses from each time. NONE of which have negative scale or size. The scale of all of them is 1,1,1 and the size of all of them is always above 0. I have checked before and during gameplay and none of that changes, but I still get the warnings. I doubt it is just trying to be helpful and tell me “tips.” Like, why pick that message when there are probably thousands of potential warnings it could give me?
Anyway, I kept working on the project and noticed that the warning messages went away. I didn’t change the colliders at all. I just gave up trying to figure out what it’s deal was and tried to move on. However, when I came back to my machine to work some more on the project, the warnings started showing up again.
After some testing, I figured out what is causing the warnings to show up. When I move the Game window to my second monitor. 100% it will throw a warning about one of those 6 different colliders if I play the game with the Game window on my second monitor. If I move the Game window back to my primary monitor where Unity is, I do not get any warnings.
I just tried moving the Unity editor (the whole program) to my second monitor, but kept the Game window in the editor. No warnings. I moved the Game window over to my primary monitor (away from the Unity editor), and the warnings came back.
Can someone advise what is going on?