unity
smilife_
这个作者很懒,什么都没留下…
展开
-
Unity3D C#调用C++ dll并且实现两者之间的图像传输
Unity3D官方下载地址 unity3D处理图像 opencv环境配置 #include <opencv2\opencv.hpp> #define DLL_API extern "C" __declspec (dllexport) DLL_API void transferImage(int rgbInt[], int width, int height, int chann...原创 2019-04-15 22:13:47 · 1378 阅读 · 2 评论 -
unity Texture2D 像素访问
unity Texture2D 像素访问 public Texture2D getTexture(float[] rgb) { Texture2D texture; int cnt = 0; for (int y = height - 1; y >= 0; y--) { for (int x = ...原创 2019-04-17 16:24:20 · 2702 阅读 · 0 评论 -
unity+ndk+android+.so+apk
1. 安装NDK 解压下载后的文件夹,将文件夹路径添加到系统环境变量Path中 2. 编写文件 makeSo文件夹名称可以修改,但jni不要修改 Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := NativeCode LOCAL_C_INCLUDES := $(LOCAL_PA...原创 2019-04-22 17:17:34 · 3083 阅读 · 1 评论