浏览代码

Bugfix: Don't try to use editor API when compiling for standalone target.

/fptl_cleanup
Torbjorn Laedre 7 年前
当前提交
99f55b34
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SubsurfaceScatteringProfile.cs

4
Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SubsurfaceScatteringProfile.cs


{
if (s_DefaultProfile == null)
{
#if UNITY_EDITOR
#else
throw new UnassignedReferenceException("SubsurfaceScatteringProfile.defaultProfile can not be null.");
#endif
}
return s_DefaultProfile;
}

正在加载...
取消
保存