![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
文章平均质量分 80
linyi_pk
这个作者很懒,什么都没留下…
展开
-
unity3d控制camera移动旋转
第一次写博客,刚开始学习unity。把近期所学记录下来~ 最近做的demo是控制一个摄像头在一个室内的场景中自由移动,类似于第一人称视角。 1.用鼠标和键盘控制using UnityEngine;usingSystem.Collections; public classCameraController : MonoBehaviour{ public float n转载 2016-04-19 14:05:11 · 14087 阅读 · 0 评论 -
unity调用摄像头
在unity调用设备的摄像头显示在GUI界面中,在pc和android手机中都适用 代码如下using UnityEngine;using System.Collections;public class CameraTest : MonoBehaviour{ public WebCamTexture cameraTexture; public str转载 2016-04-19 14:53:20 · 832 阅读 · 0 评论 -
unity调用C++动态链接库dll
unity调用C++的dll。传入摄像头的图片,传出三个参数。 首先生成C++的dll文件,注意是X64的release版本,因为unity支持64位,不然会报错。 C++头文件 extern "C" _declspec(dllexport)void Unity2OpenCVImage(char* imageData, int width, int height , float转载 2016-04-19 14:32:28 · 1483 阅读 · 0 评论