ドキュメント

Unity Engine

Unity Engine

GetTypeForControl(int)

Get a filtered event type for a given control ID.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public EventType GetTypeForControl(int controlID)

Parameters

controlID

The ID of the control you are querying from.

Returns

Type

Description

EventType

Remarks

This function is used to implement mouse locking and keyboard focus. The controlID can be obtained from GUIUtility.GetControlID().
Additional Resources: EventType for the list of possible values.