기술 자료

Unity Engine

Unity Engine

GetTypeForControl(int)

Get a filtered event type for a given control ID.
읽는 시간 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.