更改Unity中鼠标的图像

来源:互联网 发布:js outerhtml 编辑:程序博客网 时间:2024/05/21 17:06

代码很简单 :

 

 

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);}

原创粉丝点击