您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
740 B
31 行
740 B
using UnityEngine;
|
|
using UnityEditor;
|
|
using UnityEngine.Experimental.Rendering.HDPipeline;
|
|
|
|
namespace UnityEditor.Experimental.Rendering.HDPipeline
|
|
{
|
|
[CanEditMultipleObjects]
|
|
[VolumeComponentEditor(typeof(HDRISky))]
|
|
public class HDRISkyEditor
|
|
: SkySettingsEditor
|
|
{
|
|
SerializedDataParameter m_SkyHDRI;
|
|
|
|
public override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
|
|
var o = new PropertyFetcher<HDRISky>(serializedObject);
|
|
m_SkyHDRI = Unpack(o.Find(x => x.skyHDRI));
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
PropertyField(m_SkyHDRI);
|
|
|
|
EditorGUILayout.Space();
|
|
|
|
base.CommonSkySettingsGUI();
|
|
}
|
|
}
|
|
}
|