浏览代码

Use ENABLE_VR (superset of !UNITY_SWITCH) to protect accesses to XRSettings

/main
Nerites 6 年前
当前提交
90cded2f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.render-pipelines.core/CoreRP/XR/XRGConfig.cs

2
com.unity.render-pipelines.core/CoreRP/XR/XRGConfig.cs


{ // SRP should use this to safely determine whether XR is enabled
get
{
#if !UNITY_SWITCH // FIXME find the right way of safely checking if XR is supported
#if ENABLE_VR
return XRSettings.enabled;
#else
return false;

正在加载...
取消
保存