当前位置:   article > 正文

unity 报错_unity s not valid. input localscale is { nan, nan,

unity s not valid. input localscale is { nan, nan, 1.000000 }.
  1. NullReferenceException: Object reference not set to an instance of an object
  2. UnityEditor.Graphs.Edge.WakeUp () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Edge.cs:114)
  3. UnityEditor.Graphs.Graph.DoWakeUpEdges (System.Collections.Generic.List`1 inEdges, System.Collections.Generic.List`1 ok, System.Collections.Generic.List`1 error, Boolean inEdgesUsedToBeValid) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:387)
  4. UnityEditor.Graphs.Graph.WakeUpEdges (Boolean clearSlotEdges) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:286)
  5. UnityEditor.Graphs.Graph.WakeUp (Boolean force) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:272)
  6. UnityEditor.Graphs.Graph.WakeUp () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:250)
  7. UnityEditor.Graphs.Graph.OnEnable () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Graph.cs:245)

出现这个的原因未知(unity抽风),解决方法就是重启就好了(万能重启)

 

  1. transform.localScale assign attempt for 'XXXXX' is not valid. Input localScale is {NaN, NaN, NaN, NaN}
  2. //目前我的解决方法为加个判断 
  3. if (0 == value)
  4. value = 0.0001f;

 NaN=NOT A NUMBER;

出现这个错的原因一般是进行了除数计算,而且除数为0了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/118504
推荐阅读
相关标签
  

闽ICP备14008679号