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 Richard 3 · Jan 19, 2012 at 09:20 AM · androidtextiphonekeyboard

Remove "Preview text line" above keyboard input text on Android and iPhone

An extra bar is loaded on top of the keyboard on iPhone or Android Devices. Is the a way to remove the extra line where the text is previewed on a mobile device or tablet?

When finished typing you have to press done on the keyboard to submit the text, this also hides the keyboard. If you don't press submit on the keyboard the application doesn't register anything has been typed.

I have a scene where a password needs to be submitted. Next to the password field is my submit button. If the password is typed in and my button pressed without the keyboard submit button being pressed first Unity doesn't register the password. I have to press submit on the keyboard first even though the password is in its text field. This is a double step and is confusing people.

Thanks in advance.

Comment
Add comment · Show 2
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
avatar image mehowe7 · Jan 25, 2012 at 12:30 PM 0
Share

i am also struggling with this, have you come up with a solution?

avatar image Richard 3 · Jan 25, 2012 at 01:15 PM 0
Share

No, not yet. This is proving to be a bit frustrating.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by mehowe7 · Jan 30, 2012 at 11:49 AM

 var hit : RaycastHit;

var text : String; var textMesh : TextMesh; var backtextMesh : TextMesh; private var keyboard : iPhoneKeyboard;

function Update(){

 if(Input.touches.length > 0){
     if(Input.touches[0].phase == TouchPhase.Began){
         if(Physics.Raycast(camera.ScreenPointToRay(Input.mousePosition), hit, 100)){
             if(hit.collider.CompareTag("Numberplate")){
                 numberplateOn();
                 if(!iPhoneKeyboard.visible)keyboard = iPhoneKeyboard.Open(text,iPhoneKeyboardType.Default,false,false, false, true);
             }
         }
     }
 }
 
 if(keyboard){
     if (mainscript.numberplateType && keyboard.done){
         mainscript.numberplateType = false;
         numberplateOff();
     }

}

this is what i am using. however you cannot use your own text box, you must use the one attached to the keyboard. pressing either the keyboard enter button or the done button calls my function fine which is numberplateOff but you can put your own function there.

Comment
Add comment · Show 1 · Share
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
avatar image mehowe7 · Jan 30, 2012 at 11:50 AM 0
Share

the top section is calling the text box to appear

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Input text dosent always work on mobile devices, Android and iPhone 1 Answer

iPhoneKeyboard.area works? 2 Answers

setting iPhoneKeyboard.text (or any workaround about resetting user input) in Android. 0 Answers

How to save text and display using Touch Screen Keyboard 1 Answer

How to disable the keyboard text box on Android? 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