Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by swatdogg · Jan 31, 2015 at 08:43 AM · windows phonetext mesh

touchscreen mobile keyboard won't input to text mesh in windows phone 8.1

I have a text mesh that is attached to a gameobject in which people will type a username. Whenever I call open the touchscreen keyboard I have been unable to get it to recognize any typing and have that typing show up as the text mesh. I have tried several variations of code after researching and looking at these answers http://answers.unity3d.com/questions/746682/how-to-use-and-test-the-virtual-keyboard-in-window.html http://answers.unity3d.com/questions/830660/windows-phone-81-touchkeyboard-problem.html

Here is my latest version of code I have tried and still had no success.

 void inputActive() {

     inputNameObject.transform.position = new Vector3(0f, 2.87f, -2f);
     keyboard = TouchScreenKeyboard.Open(username, TouchScreenKeyboardType.Default,false, false, false,false,"hola");
     StartCoroutine(ProfileName(keyboard));
     
 }
 
 public IEnumerator ProfileName(TouchScreenKeyboard m_keyboard) {

     if (!m_keyboard.active) {
         username = Input.inputString;
         inputName.text = "done";
         inputNameObject.transform.position = new Vector3(0f, -4.17f, -2f);
     }else {
         foreach (char c in Input.inputString) {
             if (c == '\b' && username.Length > 0) {
                 username = username.Substring (0, username.Length - 1);
             }else if (c == '\n' || c == '\r') {
                     m_keyboard.active = false;
             }else {
                 username += c;
             }
             
         }
     }
     
     inputName.text = username;
     yield return new WaitForEndOfFrame();
     
 }
 
 void SetText(string profileusername) {
     inputName.text = profileusername;
 }


It builds fine and will run on all the WP 8.1 emulators, but the typing on the emulator keyboard gives me no results. I would try it on my lumia 920, but I have not been able to get the stupid thing to register and connect with Visual Studio 2013 (it may be because it no longer has an active sim card, but I would like to think you could still develop on non-cell connected phone since I can still get OS updates with developer preview). I have spent about 6 hours on this and have come up empty so far. Any help would be greatly appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Text mesh not showing correctly 0 Answers

Text Mesh pro and sprite atlas in 2019 1 Answer

System.UnauthorizedAccessException when deploying to Windows Phone 8 1 Answer

Windows Phone 8 Optimization 0 Answers

How do I display Windows Phone Ads in specific pages? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges