Skip to content

floe/unity-android-native-texture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-android-native-texture

Minimal example of how to dynamically update a texture in Unity on Android from native C++ code.
Should also work on Linux deployments with minimal changes, not tested yet.

Note: before deploying the Unity project, you need to build the native library in Assets/Plugins/Android/src/ by setting $ANDROID_NDK_ROOT and running build_plugin.sh. This uses the old-style ndk-build process, should be upgraded to CMake and properly integrated with Unity at some point.

Branches:

  • master: a procedural texture in C passed to Unity
  • camera: a live camera view from the NDK -> Unity
  • opencv: live camera view processed with OpenCV -> Unity

Built/tested with:

  • Unity 2018.2.4f1
  • Android NDK r15c
  • Android 8.0 Oreo (API level >= 24)
  • OpenCV for Android 3.4.1

Sources:

About

Minimal example of how to dynamically update a texture in Unity on Android from native C++ code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published