Unity bug: transform.position assign attempt for 'SceneCamera' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

问题:

Unity 报错:

transform.position assign attempt for ‘SceneCamera‘ is not valid. Input position is { NaN, NaN, NaN }.

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

解决方法:

改变Unity editor 布局(layout)可以解决这个奇怪的问题。

Unity bug: transform.position assign attempt for 'SceneCamera' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

时间: 2024-08-13 08:44:27

Unity bug: transform.position assign attempt for 'SceneCamera' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)的相关文章

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [160 nan]解决方法

1 2014-06-11 15:19:17.167 ***[930:707] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [160 nan]' 2 *** Call stack at first throw: 3 ( 4 0 CoreFoundation 0x3365d64f __exceptionPreprocess

iOS 常见错误:CALayer position contains NaN: [14 nan]

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [14 nan]'*** First throw call stack: 这个主要在画layer的时候,计算未考虑0的情况,在除数为0的时候就会报错,去检查把,骚年~~

'CALayer position contains NaN: [160 nan]'

2011-06-11 15:19:17.167 ***[930:707] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [160 nan]' *** Call stack at first throw: ( 0   CoreFoundation                      0x3365d64f __exce

reason:'CALayer position contains NaN: [160 nan]'

今天出现了这个错误,说是某些地方代码除以0了,多见于自定义的UITableView自定义UITableViewCell高度的地方,如:tableView:heightForHeaderInSection:或tableView:heightForFooterInSection:.这两个delegate方法都没有地方需要除的.在仔细看一下文章,说多见于适用sizeWithFont方法计算UILabel宽高的地方.恍然大悟,小弟有一个地方使用了UILabel来显示文本,需要用到sizeWithFont

Unity 之 transform

transform.Translate 1.function Translate (translation : Vector3, relativeTo : Space = Space.Self) : void) Move the object forward along its z axis 1 unit/second. //沿着z轴1单位/秒,向前移动物体 transform.Translate(Vector3.forward * Time.deltaTime); // Move the ob

Tensorflow bug(一) ValueError The passed save_path is not a valid checkpoint

近日,在使用Siamese网络实现西储大学轴承数据故障诊断中,测试的过程出现了 1 ValueError: The passed save_path is not a valid checkpoint 的错误.错误是由于在测试的过程中导入checkpoint时,传入的save_path是无效的,或者是说,传入的save_path在给定的路径中没有找到对应的文件. 网上关于该问题的解决方案主要包含两个方面: checkpoint路径应该使用相对路径: 路径字符不要太长 但均没有从本质上解决遇到的问

Unity上线google商店 用IL2Cpp打包64位版本和Android APP Bundle优化 及产生的bug

ios刚上线,这边着手改成android版本,我开始使用的是unity2017.4.1版本 上传谷歌商店是出现这两个警告: 要支持64位,但是在2017版本上没有找到64位的打包选项,猜测应该是版本的问题,上网查询果然是 以下是我查询的: https://www.cnblogs.com/cnxkey/articles/9760391.html http://tieba.baidu.com/p/5496282855 http://dy.163.com/v2/article/detail/E9LQN

关于NaN(Not a Number)的问题

在游戏运行时,代码若写得不安全很容易出现NAN的异常.一旦NAN出现整个游戏不崩溃也坏死掉了,游戏上了则是要被直接打回来的节奏,更是一个开发及测试人员每人都要扣3000块的大BUG. 一般表现为: 1. transform.rotation assign attempt for "XXX" is not valid. Input rotation is {NaN, NaN, NaN, NaN}. 2. Getting an error of rigidbody.force assign

[Unity3D]关于NaN(Not a Number)的问题

在游戏运行时,代码若写得不安全很容易出现NAN的异常.一旦NAN出现整个游戏不崩溃也坏死掉了,游戏上了则是要被直接打回来的节奏,更是一个开发及测试人员每人都要扣3000块的大BUG. 一般表现为: 1. transform.rotation assign attempt for "XXX" is not valid. Input rotation is {NaN, NaN, NaN, NaN}. 2. Getting an error of rigidbody.force assign