Пример #1
0
        /// <summary>
        /// Clear the link to the open keyboard
        /// </summary>
        public void LoseFocus()
        {
            if (isKeyboardOpen == false)
            {
                return;
            }

            isKeyboardOpen = false;
            if (currentNativeInput != null)
            {
                currentNativeInput.DeactivateInputField();
                currentNativeInput = null;
            }
//#if USE_TMPRO
            if (currentTmproInput != null)
            {
                currentTmproInput.DeactivateInputField();
                currentTmproInput = null;
            }
//#endif

#if !UNITY_EDITOR && UNITY_WEBGL
            UnityEngine.WebGLInput.captureAllKeyboardInput = true;
#endif
        }
Пример #2
0
 void DeactivateInputField()
 {
     _InputField.DeactivateInputField();
 }