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 () {
	
}

}

You can simply do so by changing the content type on the inputField component.

  • Find the “Contnet Type” drop down under InputFieldSettings submenu on your inputField component, below the “character limit” and above the “placeholder” fields.

  • Change it to integer number.

Then numpad automatically pops up when you tap on it to enter an input.