pico+unity3d开启彩色透视

1、点击游戏对象、点击XR、点击添加XR Origin,并把自带的摄像对象删除
2、添加脚本

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.XR.PXR;//引入xr对象
public class toushi : MonoBehaviour
{
    
    
    // Start is called before the first frame update
    void Start()
    {
    
    
        //打开彩色摄像透视模式
        PXR_Boundary.EnableSeeThroughManual(true);
    }

    // Update is called once per frame
    void Update()
    {
    
    
        
    }
}

3、创建空父对象并赋予刚才写的透视脚本
在这里插入图片描述