Ejemplo n.º 1
0
        /// <summary>
        /// Calls the controller passing the selected input field to enable the keyboard
        /// </summary>
        /// <param name="_data"></param>
        public void OnPointerClick(PointerEventData _data)
        {
            if (nativeInput != null)
            {
                controller.FocusInput(nativeInput);
            }
#if TMP_PRESENT
            if (tmproInput != null)
            {
                controller.FocusInput(tmproInput);
            }
#endif
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Calls the controller passing the selected input field to enable the keyboard
        /// </summary>
        /// <param name="_data"></param>
        public void OnPointerClick(PointerEventData _data)
        {
            if (nativeInput != null)
            {
                controller.FocusInput(nativeInput);
            }
//#if USE_TMPRO
            if (tmproInput != null)
            {
                controller.FocusInput(tmproInput);
            }
//#endif
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Calls the controller passing the selected input field to enable the keyboard
        /// </summary>
        /// <param name="_data"></param>
        public void OnPointerClick(PointerEventData _data)
        {
            if (Time.realtimeSinceStartup - lastClick < 0.1f)
            {
                return;
            }

            lastClick = Time.realtimeSinceStartup;

            Debug.Log("Pointer");
            if (nativeInput != null)
            {
                controller.FocusInput(nativeInput);
            }
#if USE_TMPRO
            if (tmproInput != null)
            {
                controller.FocusInput(tmproInput);
            }
#endif
        }