Skip to content

A native implementation of text input boxes on iOS and Android for Unity

License

Notifications You must be signed in to change notification settings

nostek/UnityNativeEditBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityNativeEditBox

A native implementation of UITextField on iOS and EditText on Android for Unity. Works with TextMesh Pro.

Installation

  1. Copy the Plugins folder to your Assets folder.
  2. Add NativeEditBox to your TMP InputField component.
  3. Done!

Usage

  • Use the delegates on NativeEditBox for events.

  • Use the static rect KeyboardArea on NativeEditBox for information about the keyboard. If the rect is zero, then the keyboard is hidden.

Known issues

  • The NativeEditBox is always on top of Unity, nothing will be rendered over it.

Tips

  • Use DestroyNative() to destroy the native version and show Unitys InputField instead.

  • Activate "Switch Between Native And Unity" to make NativeEditBox to switch by itself when the inputfield gets deactivated.

Big thanks to for inspiration and help

https://github.com/gree/unity-webview

https://github.com/indeego/UnityNativeEdit

Tested with Unity 2022.3.26f