Version: 2022.1
言語: 日本語
public bool isMouse ;

説明

マウスのイベントかどうか(読み取り専用)

using UnityEngine;

public class Example : MonoBehaviour { // Detects any mouse event void OnGUI() { Event e = Event.current; if (e.isMouse) { Debug.Log("Detected a mouse event!"); } } }