浏览代码

Merge pull request #467 from Unity-Technologies/litui-sss-button

Added a temporary button to quickly jump to the SSS settings from LitUI
/stochastic_alpha_test
GitHub 7 年前
当前提交
a7a1fc40
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 14
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Editor/LitUI.cs

14
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Editor/LitUI.cs


using (var scope = new EditorGUI.ChangeCheckScope())
{
int profileID = (int)subsurfaceProfileID.floatValue;
profileID = EditorGUILayout.IntPopup(Styles.subsurfaceProfileText, profileID, names, values);
using (new EditorGUILayout.HorizontalScope())
{
EditorGUILayout.PrefixLabel(Styles.subsurfaceProfileText);
using (new EditorGUILayout.HorizontalScope())
{
profileID = EditorGUILayout.IntPopup(profileID, names, values);
if (GUILayout.Button("Goto", EditorStyles.miniButton, GUILayout.Width(50f)))
Selection.activeObject = sssSettings;
}
}
if (scope.changed)
subsurfaceProfileID.floatValue = profileID;

正在加载...
取消
保存