unity3D中的Debug.Log()问题

unity3D中的Debug.Log()问题


幕布斯7119047
浏览 1419回答 1
1回答

守候你守候我

是有输出的,只是输出大量为空。1、Input.inputString的值很快就会清空。官方描述:Returns the keyboard input entered this frame. (Read Only)即,返回某一帧的键盘输入,下一帧就会被清空2、使用Input.GetKeyDown时,系统是有一定的延迟时间。官方描述:Returns true during the frame the user starts pressing down the key identified by name.即该函数用于判定是否一直按着某个键所以可以改用Input.GetKey函数。另外由于1帧可以检测到多个Input.GetKey,所以会在按下a键时输出一次,之后会输出若干次空值
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Unity 3D