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 Hotshot10101 · Dec 16, 2014 at 04:03 AM · uiinputfield

InputField Problems on Android

I am using 4.6.1 on Android. I have a couple InputFields on my canvas.

When I tap in them the keyboard comes up and I enter text in the input field that appears above the keyboard. I then tap on another input field and the keyboard goes away. I have to tap it again to get the keyboard to come up.

Now when I enter text in the new field. I tap on a third one and the keyboard goes away. So I tap on the 1st one and the keyboard shows up, but the text in the 2nd and 3rd input fields takes on whatever value is in the 1st one.

The other thing that happens is if I set the check box to hide mobile input these things happen:

Now when I tap on a field the cursor always starts at the beginning even when there is text. If I hit backspace the cursor jumps to the end and the last character is deleted.

The text sometimes disappears when I click on an inputfield

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 N20Digital · Jan 28, 2015 at 10:29 AM 0
Share

I also have the same issue, really weird on IOS.. Unity Please Help!!

avatar image globalillumination · Feb 26, 2015 at 05:41 PM 0
Share

this is even happening in unity 5.

6 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by zlremillard · Dec 16, 2014 at 07:52 PM

I have the same problem for iOS.

Everything is fine in the editor but when I build an iOS version, the Input Fields on my UI act really weird: all the Input Fields values change to the one i'm editing, InputFields dissapearing and reappearing, etc...

I thought my project was corrupted but to see that somebody else has the problem shows that the new 4.6.1 build might be the problem.

Comment
Add comment · 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
1

Answer by Hotshot10101 · Dec 16, 2014 at 10:12 PM

I guess this is good news and bad news. It means the problem is bigger than a small bug and yet big enough maybe Unity will be more motivated to fix it?

What I wonder is if Unity is aware of it. I wonder if they do testing on actual Android and iOS devices. Seems like this would be a pretty big red flag item.

I love what Unity is doing. I know this is Rev 1 of the new UI and it is awesome. Thank you Unity for all the hard work and finally having a first class UI even if it does have a little ways to go in some areas.

Comment
Add comment · Show 2 · 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 Hotshot10101 · Dec 16, 2014 at 10:12 PM 0
Share

BTW I submitted a bug report.

avatar image Oluf · Jan 19, 2015 at 08:52 AM 0
Share

Is there a place I can upvote it/verify your bug report? I got the same exact issue

avatar image
1

Answer by mavasher · Feb 17, 2015 at 01:45 PM

I have the exact same problem. Worked fine in 4.6b which I was using for several months. Upgrade to 4.6F2 brought in this non-sense on my Android build. I thought I had corrupted something. Glad to hear I'm not crazy. Sad that it doesn't seem like there is a good fix.

I love the new UI. But we have to have this right for our production builds. I just sent an email through bugs@unity3d.com to see if we can get some help on this.

Comment
Add comment · 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
0

Answer by Thewhiteaura · Apr 09, 2015 at 04:28 AM

I am currently using unity 5, and the inputfield took me a little while to work around, I managed to get one to work for a player name, and allow it to be edited later. Maybe you can use something like this for all of them? My code looks like this (I was searching around the forums for a long time to get to this point) ((another note, for some reason when i click anywhere on the screen i can edit the inputfields text, it activates it, so that may also be a problem)) here is for a brand new player -

 using UnityEngine;
 using System.Collections;
 using UnityEngine.UI;
 
 public class NewPlayerName : MonoBehaviour 
 {
     public InputField PlayerName;
     public Text EnteredName;
 
     public void UserInput()
     {
         if (Input.GetKeyDown(KeyCode.Return) || PlayerName.text.Length > 0)
         {
             if ((PlayerName.text != null) && (EnteredName != null))
             {
                 CreatePlayer(); // This just sets the stats for the new player
                 playerName = PlayerName.text; // Sets your players name               
                 Save(); //saves the input, and character creation
                 Application.LoadLevel("MainMenu"); // then loads the main menu
             }
         }
     }
 }

Do note those other functions are called from outside this script and do not directly affect the input. I used the same concept to edit it later..

 public void UserInput()
 {
     if (Input.GetKeyDown(KeyCode.Return) || PlayerName.text.Length > 0)
     {
         if ((PlayerName.text != null) && (EnteredName != null))
         {
             playerName = PlayerName.text;
             Save();
         }
     }
 }

then for the other inputfields you could just copy them and create a new function e.g inputfield2 and make them set different variables. After you have your code sorted out, go to the inputfields inspector and click the "+" symbol in the End Edit (String) box, add the GameObject with the script attatched, then click the arrows in the next drop down and find the UserInput() you would like to use for that inputfield.

Hopefully this helps you if you have not figured this out yet and anybody else who comes along to this question.

Comment
Add comment · 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
0

Answer by yoonitee · Jun 17, 2015 at 06:27 AM

Let's face it. It's not going to be fixed any time soon. If you just need text input, for mobile you could try the Arcade Keyboard asset from the asset store instead. Instead of messing about with the mobile keyboard for input.

Comment
Add comment · 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
  • 1
  • 2
  • ›

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

40 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can I disable the use of Input.GetKey(KeyCode("any key")) while an InputField is in use? 2 Answers

Text MeshPro Input field insert integer? 1 Answer

DropDown menu(add item from input field): Object reference not set to instance of an object C# 1 Answer

Deactivate input field, NOT set interactable to false 1 Answer

InputField limits characters unwantedly, even with no character limit 1 Answer


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