代码很简单 :
var mouse_pic:Texture;
function Start(){
Screen.showCursor=false;
}
function OnGUI(){
var mouse_pos=Input.mousePosition;
GUI.DrawTexture(Rect(mouse_pos.x,Screen.height-mouse_pos.y,16,20),mouse_pic);
}
代码很简单 :
var mouse_pic:Texture;
function Start(){
Screen.showCursor=false;
}
function OnGUI(){
var mouse_pos=Input.mousePosition;
GUI.DrawTexture(Rect(mouse_pos.x,Screen.height-mouse_pos.y,16,20),mouse_pic);
}