Screen.showCursor 显示光标

static var showCursor : bool


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;
Page last updated: 2011-1-17