浏览代码

quick fix for missing 7.2.0 API

/main
André McGrail 5 年前
当前提交
ac7baa59
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 10
      Packages/com.verasl.water-system/Scripts/Water.cs

10
Packages/com.verasl.water-system/Scripts/Water.cs


_depthCam = go.AddComponent<Camera>();
}
var additionalCamData = _depthCam.GetUniversalAdditionalCameraData();
additionalCamData.renderShadows = false;
additionalCamData.requiresColorOption = CameraOverrideOption.Off;
additionalCamData.requiresDepthOption = CameraOverrideOption.Off;
if (_depthCam.TryGetComponent<UniversalAdditionalCameraData>(out var additionalCamData))
{
additionalCamData.renderShadows = false;
additionalCamData.requiresColorOption = CameraOverrideOption.Off;
additionalCamData.requiresDepthOption = CameraOverrideOption.Off;
}
var t = _depthCam.transform;
var depthExtra = 4.0f;

正在加载...
取消
保存