Versions with this page:
Versions without this page:
Control 键是否被按住?(只读)
如果按住了任何 Control 键,则返回 true。
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void OnGUI() { Event e = Event.current; if (e.control) Debug.Log("Control was pressed."); } }