您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

29 行
817 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.Experimental.Rendering.HDPipeline;
using UnityEditor.Experimental.Rendering;
namespace UnityEditor.Experimental.Rendering.HDPipeline
{
[VolumeComponentEditor(typeof(ExponentialFog))]
public class ExponentialFogEditor : AtmosphericScatteringEditor
{
private SerializedDataParameter m_FogDistance;
public override void OnEnable()
{
base.OnEnable();
var o = new PropertyFetcher<ExponentialFog>(serializedObject);
m_FogDistance = Unpack(o.Find(x => x.fogDistance));
}
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
PropertyField(m_FogDistance);
}
}
}