Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class GamepadInputFieldHelper : MonoBehaviour {
- InputField _inputField;
- // Use this for initialization
- void Start () {
- _inputField = GetComponent<InputField>();
- }
- // Update is called once per frame
- void Update () {
- if(Input.GetButtonUp("Submit"))
- {
- _inputField.DeactivateInputField();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment