Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaN Input Error #680

Open
seoyeon01 opened this issue Apr 18, 2024 · 2 comments
Open

NaN Input Error #680

seoyeon01 opened this issue Apr 18, 2024 · 2 comments

Comments

@seoyeon01
Copy link

Unity 22.3.13f1

transform.localPosition assign attempt for 'TestObject' is not valid. Input localPosition is { 0.000000, NaN, 0.000000 }.

image

I'm having a similar problem with this.
#137

In my case, an error occurs in DOLocalMoveY.
When I Debug.Log the value of the Input Value, it seems that there is no problem.
However, in DOLocalMoveY, the value of Y is Nan, which causes the problem.

What should I check?

@Decavoid
Copy link

Show code that calls DOLocalMoveY.
NaN is usually produced when you divide any number by 0.

@seoyeon01
Copy link
Author

Oh, I think I found the cause of the problem.
Of course it's my fault, but I think there's room for improvement

Sequence.Insert(insertTime, target.DoLocalMoveY(...));
I'm using this way.
The problem is that the value of Y is normal, but the insertTime is NaN.
However, DoTween's Log say that the value of Y is Nan!
So there was confusion in my search for the cause of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants