摘要: // Tests if the mouse is touching a GUIElement.// Add a GUITexture and put the mouse over it and// it will print the GUITexture name.private var test : GUILayer;test = Camera.main.GetComponent(GUILayer);function Update() { if(test.HitTest(Input.mousePosition) != null) { Debug.Log(test.HitTest(Input. 阅读全文
posted @ 2012-07-06 05:53 softimagewht 阅读(331) 评论(0) 推荐(0)