Remove Focus From InputField

My question is fairly simple, how does one remove focus from an InputField in the new UI system? I’ve been looking around the interwebs for a while now, and cannot seem to find a solution that actually works, even ones that are quite devious.

Long time late again, but the solution is calling
input_field.DeactivateInputField();

Note that this will call all the proper events, like OnSubmit.

@GravitonGames mentioned calling OnDeselect, but this will only invoke the events called when the input field is deselect, but will not actually deselect the input field.

Hope this helps someone :slight_smile:

Long time late but here it is a simple solution:

using UnityEngine.EventSystems;

...
InputField_Name.OnDeselect (new BaseEventData(EventSystem.current));