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