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.