本文主要是介绍Hololens 2关闭CPU框与空间网格,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
关闭CPU框
这个框的名字是"Diagnostics",新建一个脚本,直接关掉就可以了。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class CloseWindow : MonoBehaviour
{// Start is called before the first frame updatevoid Start(){GameObject obj = GameObject.Find("Diagnostics");obj.SetActive(false);}// Update is called once per framevoid Update(){}
}
关闭空间网格
将"MixedRealityToolkit"的Inspector面板中选择为如下选项。
这篇关于Hololens 2关闭CPU框与空间网格的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!