Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

38 行
769 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Management;
namespace BoatAttack
{
public class XRTweak : MonoBehaviour
{
public Material BuiltinSky;
private static bool disableRaceUI = false;
public static bool DisableRaceUI()
{
return disableRaceUI;
}
// Start is called before the first frame update
void Start()
{
if(XRGeneralSettings.Instance.InitManagerOnStart)
{
// URP XR requires built-in shader includes. Swap skybox material to use builtin skybox
RenderSettings.skybox = BuiltinSky;
// Disable Screenspace Canvas for XR because it is not supported.
disableRaceUI = true;
}
}
// Update is called once per frame
void Update()
{
}
}
}