Hololens2开发-6-EyeTracking及语音识别
一、参考场景案例位置
·
一、参考场景案例位置


克隆3处,sdk+Input+speed


挂上

voicetest代码,将voicetest代码分别挂在cube和plane组件上
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class voicetest : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void talk_to_cube()
{
Debug.Log("立方体:你呼唤我了!!");
}
public void talk_to_Plane()
{
Debug.Log("平面:你呼唤我了!!");
}
}
更多推荐



所有评论(0)