How to detect input in InputField in unity when used in android?
So I am creating a android translator app which translate the given alphabet into it's associated symbol. I created a desktop application initially so I used this code if (Input.GetKeyDown(KeyCode.A)) { originalSpriteA = Resources.Load("A", typeof(Sprite)) as Sprite; GameObject obj = new GameObject("Image"); obj.transform.localScale = new Vector3(0.02f, 0.02f, 0.02f); Image rend = obj.AddComponent(typeof(Image)) as Image; rend.sprite = originalSpriteA; rend.transform.SetParent(newParent); }
So this is for the keyboard of laptop. Now I want to convert this app into an android app. So how do you detect the keyboard input in mobile. I basically want to do the same thing I did in desktop app in a android application. I have attached a image to show how it works in unity.
Your answer
Follow this Question
Related Questions
Change brightness of display on Android 1 Answer
How to change camera on Android? 1 Answer
Trouble with closing Unity 5 ads 0 Answers