Skip to content

Dark background on Inputfield MultiLine Content Config #12

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

Open
ghoenicka opened this issue Mar 6, 2022 · 4 comments
Open

Dark background on Inputfield MultiLine Content Config #12

ghoenicka opened this issue Mar 6, 2022 · 4 comments

Comments

@ghoenicka
Copy link

Hi,

Thnks for the great pluging.
Im testing on iOS an multiple entry on inputfield. but when get the focus on inputfield, the background turns "dark" color (black). But when unfocus the field, the background turns previous color. (white)

On the NativeEditBox config, the checkbox "Switch Between Native and Unity " is actived

This issues not happens on Single Line config.
nativebox_issue

thanks.

@nostek
Copy link
Owner

nostek commented Mar 8, 2022

That is odd, the native text view has a transparent background..
And the unity text field isnt set up with a white background ?

@ghoenicka
Copy link
Author

That is odd, the native text view has a transparent background.. And the unity text field isnt set up with a white background ?

yes.. is really weird..

I tested on "none" background (solid color white) and with different sprites. The result still the same.

image

Basically, you can reproduce it creating a new project and only adding the Native plugin to Inputfield and setting the Multi Line Type.

My version is: Unity 2020.2.2f1 (also tested on 2021.2.7f1) iOS

@ghoenicka
Copy link
Author

After check NativeEditBox.mm, i added the property
[text setBackgroundColor:UIColor.whiteColor];
to avoid the black background.

image

@nostek
Copy link
Owner

nostek commented Aug 12, 2022

Hi! Thanks for looking in to this ⭐
Could you try with using clear color ? And if that works a pull request would be lovely :)
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants