MRTKUGUIInputField.OnDeselect(BaseEventData) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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.