Why does rotating an object change the position of the object?

I’ve only been using Unity for a few months now and this problem has appeared very recently. I have no clue what caused this to happen or how to fix it, I’ve tried finding answers but none of them could help with my situation.

The siutation at hand is when I try to rotate any object using the tool handle, it causes the position values to change in the Inspector, but not in the Scene. For example, my object’s positions are X: -59, Y: -69, and Z: 40, and my object’s rotations are all 0. When I change the rotation to Y: -180, the position values are now X: 39, Y: -69 (unchanged), and Z: 141. However, the positions of the object in the scene itself remains unchanged, the only difference is the object is rotated 180 degrees. (Note that my tool handle is always in the centre). Changing the rotation from the pivot doesn’t affect the position values.

However, when I change the rotation through the use of the sliders on the Inspector, it still rotates but from a pivot, not a centre, and the position values DON’T change.

This problem is especially prevelant when I want to make an animation. If I were to make my object rotate 180 degrees and then play the animation, it would show the object rotating but then moving around the X and Z axes (as if it’s rotating from the pivot AND the centre).

The most relevant answer I could find is that my pivot is off centre from where I think it is. I’m not sure what that means or how I’m supposed to fix that. Also, creating an empty GameObject is not a solution for me, I don’t want to be adding a GameObject to every single object I make forever. And final note, this only happened very recently, I was just making an animation and everything was fine, but then suddenly my tool handle toggle switched to the pivot and this all happened.

So, I’m asking what is going on with my tool handle, why does the rotation change the position in certain conditions, and how do I fix this? I’m praying the someone can help me…

Another weird thing I just noticed is that the boxes that show the values of the position and rotation on the Inspector have a dark blue background, and when I change the rotation, they both turn brown. What’s up with that?

Edit (for those in the future who had the same problem as me): This question has been closed as I’ve half-solved the problem. I haven’t mentioned that I was creating objects using ProBuilder and I’ve learnt that the pivot can be centred with the ‘Center Pivot’ function. This problem is “half-solved” because new shapes that are made with ProBuilder still have an offset pivot but applying the center pivot function is a temporary solution for whenever I make a new object. I haven’t checked yet, but I hope this pivot offset hasn’t been affected to ALL other game projects I make in the future. If so, then just uninstall and redownload Unity, as well as ProBuilder on the package manager.

Based on how you say this, the issue seem to boil down to how Unity handles positions when it comes to pivots. Pretty sure Unity is calculating the position from the pivot, not the center. Since you are rotating from the center and not the pivot, the position is changing in the inspector. If the pivot was in the center, no changes in the position of the pivot would be made and thus, no need to worry about it. Although I have no idea why this is messing with animation, as all rotations should by default be made from the pivot, less you say otherwise. For the color thing, if you are talking about the things in the scene, it’s probably based on the way the light hits it. If the light has a brownish tint, it could easily clash with the blue, making it seem brown from the right angle. Now I’m not an expert, especially since I tend to make things in 2d Unity, but you get the gist. It’s not that complicated.