// Tests if the mouse is touching a .// Add a and put the mouse over it and// it will print the name.private var test : GUILayer;
test = .GetComponent(GUILayer);function Update() { if(test.HitTest() != null) { (test.HitTest().name); }}本文共 240 字,大约阅读时间需要 1 分钟。
// Tests if the mouse is touching a .// Add a and put the mouse over it and// it will print the name.private var test : GUILayer;
test = .GetComponent(GUILayer);function Update() { if(test.HitTest() != null) { (test.HitTest().name); }}转载地址:http://nrlml.baihongyu.com/