您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
714 B
25 行
714 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
class PBRMasterGUI : ShaderGUI
|
|
{
|
|
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
|
|
{
|
|
materialEditor.PropertiesDefaultGUI(props);
|
|
|
|
foreach (MaterialProperty prop in props)
|
|
{
|
|
if (prop.name == "_EmissionColor")
|
|
{
|
|
if (materialEditor.EmissionEnabledProperty())
|
|
{
|
|
materialEditor.LightmapEmissionFlagsProperty(MaterialEditor.kMiniTextureFieldLabelIndentLevel, true);
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|