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
1
Question by ShabihDesperado · Apr 16, 2015 at 03:24 PM · inputfieldsamsung

Input Field not working on a Samsung

Hi,

I'm testing my game in different platforms. I tried it on the webplayer, some iOS and two Android. It work fine in all platforms but not in the Samsung Galaxy tab 3. It's a bit weird because it does in a Nexus 5 with 5.1. The problem is that when I write a text or a password it works while I'm typing but the text disappear when I finish and I hide the keyboard. I'm concerned because I don't know in how many devices will work my game. Is there someone with the same problem? Do you know how can be fixed?

Samsung Galaxy Tab 3 7" Android 4.4.2 Kernel 3.4.5

I'm working with unity 4.6.4

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by nate-sewell · Apr 19, 2015 at 12:31 PM

We came up with a working solution to the disappearing input text the code is based on the InputField source code from 4.6.1 as this was the most recent posted version when we started working on the second issue, since the Keyboard was a private variable we were no longer able to simply derive from the InputField base class. (please, don't bother complain that we didn't follow that approach as it was not a viable option anymore)

We have tested our modifications in Unity 4.6.2 (the first 2 modifications) and Unity 5.0.1f (all three modifications) on the devices which Brian listed in the previous post

Our modification includes a couple of other "features":

  1. optional start value for the associated text field, with the additional option to reset the initial value when the field is empty and deselected.

  2. the keyboard is no longer static (shared among all input fields) so you don't get cross contamination among input fields any more.

  3. when you click off of the input field the text remains (or if appropriate resets to the start value if left blank)

Most of the work for modification 3 is done in the LateUpdate method, tracking what the value should have been, and a minor addition in OnDeselect to set the value to value back to what was entered

I suppose we can post a diff based patch from the 4.6.1 source if there is any interest...

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 ShabihDesperado · Apr 20, 2015 at 07:21 AM 0
Share

I found a similar solution in this post: http://forum.unity3d.com/threads/inputfield-bugs.318739/#post-2069083 It's works for me so I'll check your answer like correct.

avatar image
0

Answer by brianthegreat90 · Apr 16, 2015 at 07:17 PM

I have also encountered this problem, although I am running in Unity 5.0.1f1. I do not know the solution, but I have tested it on every device I could get my hands on.

I found that Input fields are working on: - Nexus 9 (Android 5.0.1, Kernel 3.10.40) - HTC One M7 (Android 5.0.2, Kernel 3.4.10) - Samsung Note 4 (Android 5.0.1, 3.10.40) - iPad Mini 2 (iOS 8.3) - iPhone 5S (iOS 8.2) - iPhone 6 (iOS 8.3)

They are not working on: - Samsung Galaxy Tab 10.1 (Android 4.4.2, Kernel 3.4.0) - Samsung Galaxy S4 (Android 4.4.2, Kernel 3.4.0) - Samsung Tab Pro 8.4 (Android 4.4.2, Kernel 3.4.0)

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

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

20 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

Related Questions

Light Cookies on Android ? 1 Answer

How to enable head tracking in Google Cardboard via Unity Remote on OSX? 1 Answer

Access Bezel Samsung Gear S2 0 Answers

4.6 - What is InputField's type "AutoCorrect"? 1 Answer

Making a UI.Button put text into a InputField 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