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);
        }
    }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章