Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Event.control

マニュアルに切り替える
public bool control;

説明

「 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."); } }