-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White box over Input Field and no Text. #54
Comments
If you use TMP, you have to edit some code in scripts, else it will not works properly. Did you make it? |
I had it working with TMP, but I still had that white box over the input field. With or without TMP, it's still there. I don't have an android manifest file in my project? Could that be an issue? Where would that be stored? |
I tried setting image background to alpha 0, it did not resolve the issue, there is still that white box over the input field. Since my original image was transparent, I set it to the default input background, and the same white box is covering my input field. |
It seems the issue arises in my main Scene, I tested by copying over all demo components to the scene my main project uses, and the same white boxes appear blocking and messing up the input. But if I build the project with your Demo scene setup and leave the Canvas and Camera as is, everything works fine. I'm wondering what Canvas or Camera settings would have effect on this? |
You can test it. You have own settings in your project, so I don't know how it will works with plugin. You can change camera settings in demo and take a look. |
I looked threw other Issues on this project, and I had to set the alpha of the "input" field to 0. Now there is NO white box over my input. So basically the issue is fixed, but my text (that i input) is either super small or non-existent right now. Should I open up a new issue? |
Font size calc here. So, check your input field again, maybe your forgot to tune smth again :) Demo seems works properly. |
Probably so 😆. My Input field is in a Grid layout, that probably causes some issues. I also tried the solution from here, It showed no promises, I tried switching Canvas from I also tried to multiply the ratio by a large number, but that didn't seem to change anything. I will relook over my Input field rect size, mess around with grid layouts and try and figure out what I messed up again! 😄 almost have it working. |
Well I've hit another brick wall.. The caret is super small and no matter how much text I add to the input field, it still doesn't show. This image is what I mean, I set it up for TMPro. I verified my project settings and built the Demo in perfect working order with my projects project settings. The text size seems to be equal to zero or something. I'm at a lost cause with this right now, messing around with any variables showed no sign of it working. |
I think it might have something to do with your TMP refactoring. |
Here's the modified file for TMPro: MobileInputField.cs I got both results with or without TMP, but your most likely right, I might have missed something. I have made some headway's regarding text size, but there are other issues now. Fix for small textsize: Issue #1: Issue #2: |
Your code seems to work.. |
I managed to solve the text size issues. FIX: The input doesn't disappear when ever the parent object is set to hidden. It doesn't seem to update when the scale of the parent gets changed. I could disable the Input when I please and hide it like that, If there no way to do that, then you can close this issue as the problem I had is fixed. Unless there are other notes that we can leave. So to sum up for future viewers.
|
Yeah, you should control visibility by yourself. Well, I close this issue. |
When I build my project for Android, a white box appears over my Input Field.
Images are here:
https://imgur.com/a/v2y5hMh
I ran the project you provided from this GitHub and built it for android, and everything worked perfectly as expected.
But upon setting up my own project to work for this input method, it didn't work as expected.
I can provide further details if you need, I'm sure it's just a "check box" somewhere that I didn't press, but I've tried almost everything now.
I switched my graphics and rendering settings around.
I using Text Mesh Pro instead of the default Text component,
Used different graphics API.
Changed my camera settings, and Canvas rendering.
I am using Unity 2018.3.0f2.
If there's any other information needed to figure out this problem, I'd be happy to provide. This has been a huge problem for me for weeks.
The text was updated successfully, but these errors were encountered: