GetTypeForControl(int)
Get a filtered event type for a given control ID.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public EventType GetTypeForControl(int controlID)
Parameters
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.