Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Event.control

public bool control;

Description

Is Control key held down? (Read Only)

Returns true if any Control key is held down.

using UnityEngine;

public class Example : MonoBehaviour { void OnGUI() { Event e = Event.current; if (e.control) { Debug.Log("Control was pressed."); } } }

Did you find this page useful? Please give it a rating: