Language
Edit

MRTKTMPInputField.OnDeselect(BaseEventData) Method

Definition

TMPro.TMP_InputField.OnDeselect(UnityEngine.EventSystems.BaseEventData)
public override void OnDeselect(UnityEngine.EventSystems.BaseEventData eventData);
override this.OnDeselect : UnityEngine.EventSystems.BaseEventData -> unit
Public Overrides Sub OnDeselect (eventData As BaseEventData)

Parameters

eventData
UnityEngine.EventSystems.BaseEventData

Remarks

Override OnDeselect such that the base is only called when the call comes from the TMP_InputField/MRTKInputFieldManager scripts or we are not using an HMD. When using HMD we don't want the input field to be deselected just because someone did a pinch or another gesture that triggers this function. We also call the base when we are selecting another input field so that we don't have multiple ones being selected at once.

Applies to