I’ve run into a weird problem. If I change the Z postion of a gameobject to .000001 inside the Hierarchy tab, the position is output as -1e-06 in scientific notation. Not a problem, everything seems works great.
Now, when I attempt to set the Z position to .000001 via Vector3 in my script, the Z position is changed to 0 and also appears as 0 in the Hierarchy tab.
I’ve attached some screenshots. Hopefully it will help.
you probably shouldn’t be dealing with scale that small anyway…
in your first image, it seems all three values are rounded
most likely the second example is as well, but to a further decimal than 3 places…
by dragging an object around in a test it seems to be 6 places:
.0000001 still rounds to zero
EDIT: oh you have .000001
let me test…
upon testing I am unable to recreate your issue… I add the line:
transform.position.z = .000001;
and 1e-06 is my result:
I tried
transform.position = Vector3(0,0,.000001);
as well same result
OK, I tried adding even more zeros
transform.position = Vector3(0,0,.000000001);
it still works as 1e-09
so I don’t know…