mopsicus / umi

Unity mobile input (UMI) plugin for Android and iOS, allows to use features of mobile native input fields
MIT License
399 stars 92 forks source link

Plugin is not showing the text of above moved fields? #16

Closed MTaimurAzhar closed 5 years ago

MTaimurAzhar commented 5 years ago

Plugin is Hiding above moved fields by a white opaque object?

I made alpha = 0 (input field) as shown in the figure and tried couple of other ways but still it didn't work.

55151136-fcb8e300-5166-11e9-9efc-b755a7c1c14f

Untitled

.

mopsicus commented 5 years ago

Mate, I don't know what kind of image you use, and how it could be. So, simple alpha = 0 should works, you can check it in code. Btw, you can upload your scene to somewhere, and I'll try to check.

MTaimurAzhar commented 5 years ago

Hmmm, yes its mentioned in the code that it takes color of origional input field's color properties but I tried everything and it didn't work, in the last I put my Panel in your demo project and it still didn't work, I uploaded in on G-Drive and it would be great, if you could have a look

https://drive.google.com/file/d/1kmKHjrkQ6cn9PRkwa_3r5wOGwzS8c2C0/view?usp=sharing

WhatsApp Image 2019-04-01 at 15 30 35 (1)

MTaimurAzhar commented 5 years ago

not a sprite or image pops up actually the text starts getting hide behind everything,

mopsicus commented 5 years ago

oh, well, I guess it is you first (second) UI. No offence :) I've test your code, and make some test example

photo_2019-04-01_15-19-05

You can make container object, put background image into it, and after that, create inputfield with invisible background

Screenshot at Apr 01 15-20-54

And I think, result will be that you expected

MTaimurAzhar commented 5 years ago

Not offended at all, I'ma learner :) I will surely show you the game that I'm currently working on once I'm done with it :)

The project I sent you, I didn't write included any extra code of it, just changed a bit of manifest to avoid "ChangeNothing". if you make a apk of it, you'll see the name and password get hide behind anything on the screen. I just want to fix this.

-In that field I made alpha = 0. it was getting hide in the background.

Here I removed every background, still they get hided, WhatsApp Image 2019-04-01 at 16 37 31

mopsicus commented 5 years ago

I think field hides cuz of there are some anchor bugs. If you want I can zip my test project and upload it for your investigation))

MTaimurAzhar commented 5 years ago

That would be great and very kind of you :)

Actually I anchored them for multi resolution.

MTaimurAzhar commented 5 years ago

or maybe in your test project, I could compare it with my setting and see what I'm missing.

mopsicus commented 5 years ago

https://drive.google.com/file/d/1CJzNreAwsMPozf-a1FjWQX1b9x8WzwhV/view?usp=sharing

MTaimurAzhar commented 5 years ago

Thank you so much, I'll make a dummy panel with multiple input fields in the same project.

MTaimurAzhar commented 5 years ago

WhatsApp Image 2019-04-01 at 17 32 46 (1)

I tested in your project, Look it happens when fields slide up because input field is lower. can you please check it by putting a field lower in the screen, that would make fields move above.

MTaimurAzhar commented 5 years ago

I put two extra fields down and when I was filling them, above one gets disappeared in your project as well.

mopsicus commented 5 years ago

Mate, I can't do all the work for you_) try to solve it by yourself

MTaimurAzhar commented 5 years ago

I neither asked you to do my work, but this was the main concern of this post and I asked this for like 2-3 times, that for lower fields this plugin make the above fields disappear. You can take it as a feedback :)

If I could solve it, I will share the solution.

mopsicus commented 5 years ago

ok)

did you fulfill point 6 of the readme how to use list? check it again, and try, and I think you will solve your problem

mopsicus commented 5 years ago

and when you solve it (I hope :) you should use OnShowKeyboard event to move up your fields by yourself. Yeah, so complex cuz whole plugin is a hack)