기술 자료

Unity Engine

Download Unity

Unity Engine

keyboardControl

The controlID of the control that has keyboard focus.
읽는 시간 1분최근 업데이트: 18시간 전

Definition

public static int keyboardControl { get; set; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Click on the text field to see the id of the control. string str = "A String!"; void OnGUI() { str = GUILayout.TextField(str, 10); Debug.Log("id: " + GUIUtility.keyboardControl); }}