Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Event.control

Cambiar al Manual
public bool control;

Descripción

Is Control key held down? (Read Only)

Returns true if any Control key is held down.

using UnityEngine;
using System.Collections;

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