Unity UI Keyboard

Hello, I am new to unity and I am having problem of creating a virtual keyboard on the screen. I would like these virtual keyboard buttons to be able to click and then the alphabet clicked will trigger the object to show the alphabet or number i clicked on. Can anyone help me with it?? Thanks.

You can watch this video, I think this video can solve your problem. ;);):wink: The whole script is at the end of the video. However, the steps had included the usage of UI unity, so you are suggested to watch the video.

public void alphabetFunction (string alphabet)
    {
        wordIndex++;
        word = word + alphabet;
        myName.text = word;

    }

Hello, I’m trying to do this with numbers instead of letters for a Alarm set function, I’m using 2 differently named input fields, but for some strange reason if I type in one value into the fist field and then another into the 2nd field and then say I change my mind on the value in the first field and click back into that field I do not seem to be able to change it’s value, I can if I use the actual keyboard on the computer though??

// Reference To The Input Fields For HOURS And Minutes For Alarm Setting
    public InputField hoursAlarmField;
    public bool hoursInputFieldSelected = false;
    public InputField minutesAlarmField;
    public bool minutesInputFieldSelected = false;
    // Time Input For Field 1 (Hours)
    string number = null;
    int numberIndex = 0;
    string alpha;
    // Time Input For Field 2 (Minutes)
    string number2 = null;
    int numberIndex2 = 0;
    string alpha2;

public void SelectHoursField()
    {
        hoursAlarmField.ActivateInputField();
        hoursAlarmField.Select();
        hoursInputFieldSelected = true;
        minutesInputFieldSelected = false;
    }
    public void SelectMinutesField()
    {
        minutesAlarmField.ActivateInputField();
        minutesAlarmField.Select();
        hoursInputFieldSelected = false;
        minutesInputFieldSelected = true;
    }

public void numberFunction (string numbers)
    {
       

        if (hoursInputFieldSelected == true)
        {
            numberIndex++;
            number = number + numbers;
            hoursAlarmField.text = number;
        }
        else if (minutesInputFieldSelected == true)
        {
            numberIndex2++;
            number2 = number2 + numbers;
            minutesAlarmField.text = number2;
        }
    }

how to make backspace?