unityのマウスの非表示と画像の交換
581 ワード
using UnityEngine;
using System.Collections;
///
///
///
public class MosCursor : MonoBehaviour {
///
///
///
public Texture mouseImage;
///
///
///
private Vector3 msPos;
// Use this for initialization
void Start() {
//
Cursor.visible = false;
}
// Update is called once per frame
void Update() {
}
void OnGUI()
{
msPos = Input.mousePosition;
GUI.DrawTexture(new Rect (msPos.x,Screen.height-msPos.y,25,25),mouseImage);
}
}