Awesome
UnityNativeEdit v1.0
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
Usage
- Simply copy the files in
release/NativeEditPlugin
into your existing unity project asset folder. - Make empty Gameobject and attach
PluginMsgHandler
to your new GameObject - Attach
NativeEditBox
script to your UnityUIInputField
object. - Build and run on your android or ios device!
- For
Android
make sure yourAndroidManifest.xml
has 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
Etc
- NativeEditBox will work with delegate defined in your Unity UI InputField,
On Value Change
andEnd Edit
- It's open source and free to use/redistribute!
- Please refer to
demo
Unity project.