Hi,
It seems that the latest patch release causes some errors on my project build.
All was working in 4.6, so I’m curious to know what has changed in Patch 1 for 4.6 causing the breakage.
Error:
!CompareApproximately (SqrMagnitude (q), 1.0F)
UnityEngine.Transform:Rotate(Vector3)
MobileSkySystem:Update() (at Assets/MobileSkySystem/Scripts/MobileSkySystem.cs:93)
transform.localRotation assign attempt for 'SunDirectLight' is not valid. Input rotation is { NaN, NaN, NaN, NaN }.
UnityEngine.Transform:Rotate(Vector3)
MobileSkySystem:Update() (at Assets/MobileSkySystem/Scripts/MobileSkySystem.cs:93)
Any ideas what this all means?
i have the same problem with slider bars.
under the beta version it was going without problems. and since the final release i have always problems with NaN values on the transformation areas.
The code I have is from a Asset pack from the store, works perfectly before, therefore I know this is not a coding issue on my side and Unity change that has broken something.
This is happening for me too in Unity 5 - I don’t know what to do to fix it.
I had the same problem and It turned out that I was actually trying to set the rotation with NaNs.
Debug.Log(this.angle);
transform.localRotation = Quaternion.Euler(0f, 0f, this.angle * Mathf.Rad2Deg);
Adding a debug log before setting the angle allowed me to see what was the angle value that caused the problem.
Now the problem is finding out where the angle is set to NaN and why in the previous versions of Unity that didn’t occur.
1 Like