- Home /
Transform.position assign attempt error - NaN
Hi,
I have a big issue with my project that I cannot solve.
The issue deals with transform.position and NaN. My game allows you to drag and group some 3D objects, like in a Lego game.
Now the “transform.position assign attempt for {gameobject} is not valid. Input position is { NaN, NaN, NaN }” error occurs randomly when playing the game.
I tried to check if the positions I was trying to assign were effectively NaN-infected, using float.IsNan(float_number), but that was not the case.
Then, searching through Unity’s forum, I tried to close the scene tab and open a new one, with no success.
What strangely seems to work for me :
Play the game without a scene tab opened
Or use “Revert Factory Settings” for layout… But if I reset the layout as I want, the errors occur again.
Could you help me with that error ?
I really thank you in advance.