SteamVR 显示画面渐变变暗变亮效果脚本调用方法

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;

public class ceshi : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            SteamVR_Fade.Start(Color.clear, 0);
            SteamVR_Fade.Start(Color.black, 1f);
        }
        if (Input.GetKeyDown(KeyCode.D))
        {
            SteamVR_Fade.Start(Color.clear, 1f);
        }
    }
}
发布了112 篇原创文章 · 获赞 40 · 访问量 21万+

猜你喜欢

转载自blog.csdn.net/chh19941125/article/details/102487487