可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to detect click/touch event on my gameObject 2D. And this is my code: void Update () { if ( Input . touchCount > 0 ) { Debug . Log ( "Touch" ); } } Debug.Log("Touch"); does not show when I click on screen or my gameObject. 回答1: Short answer: yes, touch may be handled with Input.GetMouseButtonDown() . Input.GetMouseButtonDown() , Input.mousePosition , and associated functions work as tap on the touch screen (which is kind of odd, but welcome). If you don't have a multi-touch game, this is a good way to keep the in-editor game