Screen.showCursor 显示光标
static var showCursor : bool
Description描述
Should the cursor be visible?
光标是否可见?
It is entirely possible to implement a custom cursor instead of the system one. To do this you would hide the system one, track mouse position or movement and display your own image in the needed place.
这完全可以做到一个自定义光标,替代系统光标。要做到这点,你需要隐藏系统光标,然后跟踪鼠标位置或移动并且在需要的地方显示你自己的光标图片。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
Screen.showCursor = false;
}
}
// Hide the cursor
//隐藏光标
Screen.showCursor = false;
最后修改:2011年1月17日 Monday 19:21