GitHub - UseUnity/UnityNativeEdit: Unity Native Input Plugin for both iOS and Android (Unity UI compatible)
Repository navigation
UnityNativeEditPublic
forked from YousicianGit/UnityNativeEdit
About
Unity Native Input Plugin for both iOS and Android (Unity UI compatible)
Resources
Readme ActivityStars
1 starWatchers
0 watchingForks
0 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
197 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| demo | demo | ||
| release | release | ||
| src/ androidProj | src/ androidProj | ||
| README.md | README.md | ||
| logcat.bat | logcat.bat | ||
Repository files navigation
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/NativeEditPlugininto your existing unity project asset folder. -
If using Unity >= 5.6 make sure that your Plugins/Android/AndroidManifest.xml defines
<activity android:name="com.bkmin.android.UnityPlayerNotOnTopActivity" android:label="@string/app_name">instead of
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name">Note that there can be multiple Android manifests in a Unity project (if you have multiple Android plugins) and Unity merges them to a single manifest when building. The
activityon the manifest closest to the root level ofPlugins/Androiddirectory seems to override definitions in other manifests so make sure to modify that manifestIf another plugin you're using is overriding the
UnityPlayerActivityand the input field appears invisible you need to modify the overridingUnityPlayerActivityso that it doesn't appear on top of native views, see YousicianGit#34 .You can refer to sample
AndroidManifest.xmlin/Plugings/Androidfolder. -
Make empty Gameobject and attach
PluginMsgHandlerto your new GameObject -
Attach
NativeEditBoxscript to your UnityUIInputFieldobject. -
Build and run on your android or ios device!
Etc
- 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.
About
Unity Native Input Plugin for both iOS and Android (Unity UI compatible)