Transform values not exact

hello,

sometimes the transform values on a gameobject suddenly change like this:

it’s not a big issue, but is there any reason why this is the case? and a possible fix?

thank you

Unity does some things on the background to show what you see in the scene window, and to do those things it uses floating point variables that tend to do that. Transform.position isn’t just a variable, it’s a property that actually writes other variables and calls other methods when you put a value there, and reads other variables a methods when unity shows it’s value. You shouldn’t worry about that unless your game needs that level of precision, in which case unity maybe isn’t the right engine for your game. There’s nothing to fix that cause it’s not a bug and shouldn’t be a problem

hey,

maybe a script do this?
Or you can created a script who capture the first position and in the void Update() you update the position.

:wink: