- Home /
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
Did you move the item with script while the game was playing?
Answer by DiegoSLTS · Aug 05, 2016 at 09:48 PM
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
Answer by XBabineOne · Aug 05, 2016 at 04:28 PM
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.
;)
Your answer
Follow this Question
Related Questions
Adding a prefab to gameObject at a certain position in runtime 0 Answers
Creating new Transform from existing objects Transform to Instantiate object 1 Answer
Animation issue (OnTriggerEnter) ***SOLVED*** 1 Answer
move a GameObject based on Input.GetTouch 1 Answer
Access method of an instance 1 Answer