UnityNativeEditBox icon indicating copy to clipboard operation
UnityNativeEditBox copied to clipboard

Dark background on Inputfield MultiLine Content Config

Open ghoenicka opened this issue 3 years ago • 4 comments

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.

ghoenicka avatar Mar 06 '22 23:03 ghoenicka

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

nostek avatar Mar 08 '22 09:03 nostek

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 avatar Mar 08 '22 20:03 ghoenicka

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

image

ghoenicka avatar Jul 26 '22 03:07 ghoenicka

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!

nostek avatar Aug 12 '22 08:08 nostek