摘要:转自洪流学堂 语音转文字 1.打开麦克风记录 _clipRecord = Microphone.Start(null, false, 30, 16000); 2.将Unity的AudioClip数据转化为PCM格式16bit数据 /// <summary> /// 将Unity的AudioClip数
阅读全文
摘要:转自 https://github.com/deadlyfingers/UnityWav using UnityEngine; using System.Text; using System.IO; using System; /// <summary> /// WAV utility for re
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using Vuforia; public class ArCamFoucs : MonoBehaviour { // Use this fo
阅读全文
摘要:控制模型:移动端:单指旋转,双指缩放 PC:左键旋转,滚轮缩放 using System.Collections; using System.Collections.Generic; using UnityEngine; using Framework.Event; public class Mod
阅读全文
摘要:问题 Unity中常见的背景设置为固定颜色或者天空盒, 天空盒可以设置背景材质,但是背景跟跟随摄像机镜头的变化而运动,不能做到固定下来 思路 使用两个摄像机,一个固定观察指定的图片,另一个观察三维场景,通过分图层来把两个摄像机的内容叠加显示在Game视图中 解决方案 新建摄像机 新建一个摄像机,命名
阅读全文
摘要:Unity 打包 as工程 1.监听安卓返回键,关闭unity自身activity void Update () { if (Input.GetKeyUp(KeyCode.Escape)) { AndroidJavaClass jc = new AndroidJavaClass("com.unity
阅读全文
摘要:首先要注意的点: 1.你的unity版本是多少,去对应的安装目录中取dll 2.System.Data.dll 在D:\Program Files\Unity2017.2\Editor\Data\Mono\lib\mono\2.0 3.I18N开头的dll 在 D:\Program Files\Un
阅读全文
摘要:using UnityEngine; using System.Collections; using System; using System.Runtime.InteropServices; public class WindowsDialog : MonoBehaviour { [DllImpo
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using VRTK; public class HandPulse : MonoBehaviour { private VRTK_Contr
阅读全文