Unity Native Input Plugin for both iOS and Android (Unity UI InputField compatible).
This means you don't need a separate 'Unity' Input box and you can use all native text functions such as Select, Copy and Paste
- Simply copy the files in
release/NativeEditPlugininto your existing unity project asset folder. - Make empty Gameobject and attach
PluginMsgHandlerto your new GameObject - Attach
NativeEditBoxscript to your UnityUIInputFieldobject. - Build and run on your android or ios device!
- For
Androidmake sure yourAndroidManifest.xmlhas the following setting
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:label="@string/app_name">
...
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
...
</activity>You can refer to sample AndroidManifest.xml in /Plugings/Android folder
- NativeEditBox will work with delegate defined in your Unity UI InputField,
On Value ChangeandEnd Edit - It's open source and free to use/redistribute!
- Please refer to
demoUnity project.