- Home /
Question by
$$anonymous$$ · Oct 19, 2018 at 06:23 PM ·
androidinputfieldtouchscreenkeyboard
Make android number pad keyboard visible for TMPro_InputField
I want a number pad to open in my android game when I click the TMPro_InputField. However, I am not able to do it. If I could help to make Number Pad (TouchScreenKeyboardType.NumberPad) to work in my game. Thank you.
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro;
public class InputNumber : MonoBehaviour {
public TMP_InputField input;
// Use this for initialization
void Start () {
input.keyboardType = TouchScreenKeyboardType.NumberPad;
}
// Update is called once per frame
void Update () {
}
}
Comment
Your answer
Follow this Question
Related Questions
How to call a function when mobile keyboard is "done"? 2 Answers
How to keep opening of keyboard when focus transferred to another input field by programmatically.? 0 Answers
Keep InputField focus / selected when clicking a button / touch screen /UI 4.6 2 Answers
Disabling the inputfield above the keyboard or disable it all 0 Answers
Alternative to TouchScreenKeyboard.area on Android 0 Answers